From 891e0c5fa6cd9200c24011c33b6f2115d84d4d74 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 10 Jul 2021 20:42:28 +0200 Subject: Remove warnings from parsing and casting --- tests/ref/markup/heading.png | Bin 7328 -> 7396 bytes tests/typ/markup/heading.typ | 1 - tests/typ/text/font.typ | 6 ------ tests/typ/utility/color.typ | 3 +-- 4 files changed, 1 insertion(+), 9 deletions(-) (limited to 'tests') diff --git a/tests/ref/markup/heading.png b/tests/ref/markup/heading.png index 35a589bd..fc3ec906 100644 Binary files a/tests/ref/markup/heading.png and b/tests/ref/markup/heading.png 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 -- cgit v1.2.3