summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-07-10 20:42:28 +0200
committerLaurenz <laurmaedje@gmail.com>2021-07-10 23:14:46 +0200
commit891e0c5fa6cd9200c24011c33b6f2115d84d4d74 (patch)
tree3ea29dff87350d3d2020cdbb48b7acd01a33a1a2 /tests
parent982ce85976913463eed6c95d3599868c5e1a79dd (diff)
Remove warnings from parsing and casting
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/markup/heading.pngbin7328 -> 7396 bytes
-rw-r--r--tests/typ/markup/heading.typ1
-rw-r--r--tests/typ/text/font.typ6
-rw-r--r--tests/typ/utility/color.typ3
4 files changed, 1 insertions, 9 deletions
diff --git a/tests/ref/markup/heading.png b/tests/ref/markup/heading.png
index 35a589bd..fc3ec906 100644
--- a/tests/ref/markup/heading.png
+++ b/tests/ref/markup/heading.png
Binary files differ
diff --git a/tests/typ/markup/heading.typ b/tests/typ/markup/heading.typ
index e0dbd999..0f5bb944 100644
--- a/tests/typ/markup/heading.typ
+++ b/tests/typ/markup/heading.typ
@@ -9,7 +9,6 @@
====== Level 6
// Too many hashtags.
-// Warning: 1-8 should not exceed depth 6
======= Level 7
---
diff --git a/tests/typ/text/font.typ b/tests/typ/text/font.typ
index a349eae4..0f64e244 100644
--- a/tests/typ/text/font.typ
+++ b/tests/typ/text/font.typ
@@ -64,12 +64,6 @@ Emoji: 🐪, 🌋, 🏞
// Error: 43-44 expected string or array of strings, found integer
#font(style: bold, weight: "thin", serif: 0)[]
-// Warning: 15-19 should be between 100 and 900
-#font(weight: 2700)[]
-
-// Warning: 16-21 should be between 50% and 200%
-#font(stretch: 1000%)[]
-
// Error: 7-27 unexpected argument
#font(something: "invalid")[]
diff --git a/tests/typ/utility/color.typ b/tests/typ/utility/color.typ
index 131dbc9c..8f4c0522 100644
--- a/tests/typ/utility/color.typ
+++ b/tests/typ/utility/color.typ
@@ -8,8 +8,7 @@
// Alpha channel.
#test(rgb(1.0, 0.0, 0.0, 0.5), rgb("ff000080"))
-// Warning: 11-14 should be between 0.0 and 1.0
-// Warning: 16-20 should be between 0.0 and 1.0
+// Clamped.
#test(rgb(-30, 15.5, 0.5), rgb("00ff80"))
// Error: 11-15 missing argument: blue component