diff options
| author | Laurenz <laurmaedje@gmail.com> | 2024-02-21 15:11:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-21 14:11:35 +0000 |
| commit | 56ecd6c806ab32a7cca5289500504e398198d283 (patch) | |
| tree | 1b6fd1b34922d2877a714398beedb20f3e6cd317 /tests/typ/compute | |
| parent | 23756f9e8b0e3bf5b3e1126f681024575cca4529 (diff) | |
Wider callsite span (#3466)
Diffstat (limited to 'tests/typ/compute')
| -rw-r--r-- | tests/typ/compute/calc.typ | 18 | ||||
| -rw-r--r-- | tests/typ/compute/construct.typ | 16 | ||||
| -rw-r--r-- | tests/typ/compute/foundations.typ | 18 |
3 files changed, 26 insertions, 26 deletions
diff --git a/tests/typ/compute/calc.typ b/tests/typ/compute/calc.typ index db03af49..acd9b2a8 100644 --- a/tests/typ/compute/calc.typ +++ b/tests/typ/compute/calc.typ @@ -211,7 +211,7 @@ #1.bit-rshift(-1) --- -// Error: 10-16 zero to the power of zero is undefined +// Error: 2-16 zero to the power of zero is undefined #calc.pow(0, 0) --- @@ -219,7 +219,7 @@ #calc.pow(2, 10000000000000000) --- -// Error: 10-25 the result is too large +// Error: 2-25 the result is too large #calc.pow(2, 2147483647) --- @@ -227,7 +227,7 @@ #calc.pow(2, calc.pow(2.0, 10000.0)) --- -// Error: 10-19 the result is not a real number +// Error: 2-19 the result is not a real number #calc.pow(-1, 0.5) --- @@ -259,7 +259,7 @@ #calc.log(1, base: 0) --- -// Error: 10-24 the result is not a real number +// Error: 2-24 the result is not a real number #calc.log(10, base: -1) --- @@ -268,7 +268,7 @@ #test(calc.fact(5), 120) --- -// Error: 11-15 the result is too large +// Error: 2-15 the result is too large #calc.fact(21) --- @@ -279,7 +279,7 @@ #test(calc.perm(5, 6), 0) --- -// Error: 11-19 the result is too large +// Error: 2-19 the result is too large #calc.perm(21, 21) --- @@ -311,11 +311,11 @@ #test(calc.lcm(8, 0), 0) --- -// Error: 10-41 the return value is too large +// Error: 2-41 the result is too large #calc.lcm(15486487489457, 4874879896543) --- -// Error: 10-12 expected at least one value +// Error: 2-12 expected at least one value #calc.min() --- @@ -339,7 +339,7 @@ #test(range(10, 0, step: -3), (10, 7, 4, 1)) --- -// Error: 7-9 missing argument: end +// Error: 2-9 missing argument: end #range() --- diff --git a/tests/typ/compute/construct.typ b/tests/typ/compute/construct.typ index f37669b5..dcf59755 100644 --- a/tests/typ/compute/construct.typ +++ b/tests/typ/compute/construct.typ @@ -35,7 +35,7 @@ // Mix in hue-based space. #test(rgb(color.mix(red, blue, space: color.hsl)), rgb("#c408ff")) #test(rgb(color.mix((red, 50%), (blue, 100%), space: color.hsl)), rgb("#5100f8")) -// Error: 15-51 cannot mix more than two colors in a hue-based space +// Error: 6-51 cannot mix more than two colors in a hue-based space #rgb(color.mix(red, blue, white, space: color.hsl)) --- @@ -127,11 +127,11 @@ #rgb("lol") --- -// Error: 5-7 missing argument: red component +// Error: 2-7 missing argument: red component #rgb() --- -// Error: 5-11 missing argument: blue component +// Error: 2-11 missing argument: blue component #rgb(0, 1) --- @@ -181,7 +181,7 @@ #envelope.fly --- -// Error: 8-10 expected at least one variant +// Error: 2-10 expected at least one variant #symbol() --- @@ -223,7 +223,7 @@ #str.from-unicode(-1) --- -// Error: 18-28 0x110000 is not a valid codepoint +// Error: 2-28 0x110000 is not a valid codepoint #str.from-unicode(0x110000) // 0x10ffff is the highest valid code point --- @@ -284,15 +284,15 @@ #test(datetime.today(offset: 2).display(), "1970-01-01") --- -// Error: 10-12 at least one of date or time must be fully specified +// Error: 2-12 at least one of date or time must be fully specified #datetime() --- -// Error: 10-42 time is invalid +// Error: 2-42 time is invalid #datetime(hour: 25, minute: 0, second: 0) --- -// Error: 10-41 date is invalid +// Error: 2-41 date is invalid #datetime(year: 2000, month: 2, day: 30) --- diff --git a/tests/typ/compute/foundations.typ b/tests/typ/compute/foundations.typ index e4b7ce6a..eb50c072 100644 --- a/tests/typ/compute/foundations.typ +++ b/tests/typ/compute/foundations.typ @@ -12,27 +12,27 @@ --- // Test panic. -// Error: 7-9 panicked +// Error: 2-9 panicked #panic() --- // Test panic. -// Error: 7-12 panicked with: 123 +// Error: 2-12 panicked with: 123 #panic(123) --- // Test panic. -// Error: 7-24 panicked with: "this is wrong" +// Error: 2-24 panicked with: "this is wrong" #panic("this is wrong") --- // Test failing assertions. -// Error: 8-16 assertion failed +// Error: 2-16 assertion failed #assert(1 == 2) --- // Test failing assertions. -// Error: 8-51 assertion failed: two is smaller than one +// Error: 2-51 assertion failed: two is smaller than one #assert(2 < 1, message: "two is smaller than one") --- @@ -42,22 +42,22 @@ --- // Test failing assertions. -// Error: 11-19 equality assertion failed: value 10 was not equal to 11 +// Error: 2-19 equality assertion failed: value 10 was not equal to 11 #assert.eq(10, 11) --- // Test failing assertions. -// Error: 11-55 equality assertion failed: 10 and 12 are not equal +// Error: 2-55 equality assertion failed: 10 and 12 are not equal #assert.eq(10, 12, message: "10 and 12 are not equal") --- // Test failing assertions. -// Error: 11-19 inequality assertion failed: value 11 was equal to 11 +// Error: 2-19 inequality assertion failed: value 11 was equal to 11 #assert.ne(11, 11) --- // Test failing assertions. -// Error: 11-57 inequality assertion failed: must be different from 11 +// Error: 2-57 inequality assertion failed: must be different from 11 #assert.ne(11, 11, message: "must be different from 11") --- |
