diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/compute/calc.typ | 18 | ||||
| -rw-r--r-- | tests/typ/compute/create.typ | 2 |
2 files changed, 6 insertions, 14 deletions
diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ index 4ccefa22..bc6ef7f6 100644 --- a/tests/typ/compute/calc.typ +++ b/tests/typ/compute/calc.typ @@ -13,19 +13,19 @@ #test(type(float(10)), "float") --- -// Error: 6-10 cannot convert length to integer +// Error: 6-10 expected boolean, integer, float, or string, found length #int(10pt) --- -// Error: 8-13 cannot convert function to float +// Error: 8-13 expected boolean, integer, float, or string, found function #float(float) --- -// Error: 6-12 invalid integer +// Error: 6-12 not a valid integer #int("nope") --- -// Error: 8-15 invalid float +// Error: 8-15 not a valid float #float("1.2.3") --- @@ -39,18 +39,10 @@ #test(abs(-25%), 25%) --- -// Error: 6-17 expected numeric value, found string +// Error: 6-17 expected integer, float, angle, ratio, or fraction, found string #abs("no number") --- -// Error: 6-11 cannot take absolute value of a length -#abs(-12pt) - ---- -// Error: 6-16 cannot take absolute value of a length -#abs(50% - 12pt) - ---- // Test the `even` and `odd` functions. #test(even(2), true) #test(odd(2), false) diff --git a/tests/typ/compute/create.typ b/tests/typ/compute/create.typ index 462f06e9..ccb7bd2e 100644 --- a/tests/typ/compute/create.typ +++ b/tests/typ/compute/create.typ @@ -48,7 +48,7 @@ #test(str(10 / 3).len() > 10, true) --- -// Error: 6-8 cannot convert content to string +// Error: 6-8 expected integer, float, label, or string, found content #str([]) --- |
