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 | |
| parent | 23756f9e8b0e3bf5b3e1126f681024575cca4529 (diff) | |
Wider callsite span (#3466)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/typ/bugs/parenthesized.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/closure.typ | 2 | ||||
| -rw-r--r-- | tests/typ/compiler/delayed-error.typ | 4 | ||||
| -rw-r--r-- | tests/typ/compiler/spread.typ | 2 | ||||
| -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 | ||||
| -rw-r--r-- | tests/typ/layout/spacing.typ | 2 | ||||
| -rw-r--r-- | tests/typ/math/frac.typ | 2 | ||||
| -rw-r--r-- | tests/typ/meta/document.typ | 2 | ||||
| -rw-r--r-- | tests/typ/text/lorem.typ | 2 | ||||
| -rw-r--r-- | tests/typ/visualize/image.typ | 4 | ||||
| -rw-r--r-- | tests/typ/visualize/pattern-small.typ | 4 |
13 files changed, 39 insertions, 39 deletions
diff --git a/tests/typ/bugs/parenthesized.typ b/tests/typ/bugs/parenthesized.typ index 99488a67..6901158e 100644 --- a/tests/typ/bugs/parenthesized.typ +++ b/tests/typ/bugs/parenthesized.typ @@ -31,7 +31,7 @@ #test(f(a: _ => 5), 6) --- -// Error: 18-20 missing argument: pattern parameter +// Error: 17-20 missing argument: pattern parameter #let f(a: 10) = a() + 1 #f(a: _ => 5) diff --git a/tests/typ/compiler/closure.typ b/tests/typ/compiler/closure.typ index ef4e7df0..29c092b7 100644 --- a/tests/typ/compiler/closure.typ +++ b/tests/typ/compiler/closure.typ @@ -118,7 +118,7 @@ let types(x, y) = "[" + str(type(x)) + ", " + str(type(y)) + "]" test(types(14%, 12pt), "[ratio, length]") - // Error: 13-21 missing argument: y + // Error: 8-21 missing argument: y test(types("nope"), "[string, none]") } diff --git a/tests/typ/compiler/delayed-error.typ b/tests/typ/compiler/delayed-error.typ index c0bfba4c..eff6b85b 100644 --- a/tests/typ/compiler/delayed-error.typ +++ b/tests/typ/compiler/delayed-error.typ @@ -1,10 +1,10 @@ // Test that errors in show rules are delayed: There can be multiple at once. --- -// Error: 26-34 panicked with: "hey1" +// Error: 21-34 panicked with: "hey1" #show heading: _ => panic("hey1") -// Error: 25-33 panicked with: "hey2" +// Error: 20-33 panicked with: "hey2" #show strong: _ => panic("hey2") = Hello diff --git a/tests/typ/compiler/spread.typ b/tests/typ/compiler/spread.typ index 23cd587b..db658453 100644 --- a/tests/typ/compiler/spread.typ +++ b/tests/typ/compiler/spread.typ @@ -128,6 +128,6 @@ #{ let f(..a, b, c, d) = none - // Error: 4-10 missing argument: d + // Error: 3-10 missing argument: d f(1, 2) } 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") --- diff --git a/tests/typ/layout/spacing.typ b/tests/typ/layout/spacing.typ index f4e59590..faba60b4 100644 --- a/tests/typ/layout/spacing.typ +++ b/tests/typ/layout/spacing.typ @@ -42,5 +42,5 @@ A #h(1fr) B --- // Missing spacing. -// Error: 11-13 missing argument: amount +// Error: 10-13 missing argument: amount Totally #h() ignored diff --git a/tests/typ/math/frac.typ b/tests/typ/math/frac.typ index 0252f430..fc7dd14b 100644 --- a/tests/typ/math/frac.typ +++ b/tests/typ/math/frac.typ @@ -21,7 +21,7 @@ $ binom(circle, square) $ $ binom(n, k_1, k_2, k_3) $ --- -// Error: 8-13 missing argument: lower +// Error: 3-13 missing argument: lower $ binom(x^2) $ --- diff --git a/tests/typ/meta/document.typ b/tests/typ/meta/document.typ index 33c15dbc..b058bd96 100644 --- a/tests/typ/meta/document.typ +++ b/tests/typ/meta/document.typ @@ -27,7 +27,7 @@ Hello #set document(title: [Hello]) --- -// Error: 10-12 can only be used in set rules +// Error: 2-12 can only be used in set rules #document() --- diff --git a/tests/typ/text/lorem.typ b/tests/typ/text/lorem.typ index 92dfbba4..804f804d 100644 --- a/tests/typ/text/lorem.typ +++ b/tests/typ/text/lorem.typ @@ -28,5 +28,5 @@ } --- -// Error: 7-9 missing argument: words +// Error: 2-9 missing argument: words #lorem() diff --git a/tests/typ/visualize/image.typ b/tests/typ/visualize/image.typ index 093fecc1..0e256eb8 100644 --- a/tests/typ/visualize/image.typ +++ b/tests/typ/visualize/image.typ @@ -66,7 +66,7 @@ A #box(image("/files/tiger.jpg", height: 1cm, width: 80%)) B #image.decode(`<svg xmlns="http://www.w3.org/2000/svg" height="140" width="500"><ellipse cx="200" cy="80" rx="100" ry="50" style="fill:yellow;stroke:purple;stroke-width:2" /></svg>`.text, format: "svg") --- -// Error: 14-168 failed to parse SVG (missing root node) +// Error: 2-168 failed to parse SVG (missing root node) #image.decode(`<svg height="140" width="500"><ellipse cx="200" cy="80" rx="100" ry="50" style="fill:yellow;stroke:purple;stroke-width:2" /></svg>`.text, format: "svg") --- @@ -78,5 +78,5 @@ A #box(image("/files/tiger.jpg", height: 1cm, width: 80%)) B #image.decode(read("/files/tiger.jpg", encoding: none), format: "jpg", width: 80%) --- -// Error: 14-83 failed to decode image (Format error decoding Png: Invalid PNG signature.) +// Error: 2-83 failed to decode image (Format error decoding Png: Invalid PNG signature.) #image.decode(read("/files/tiger.jpg", encoding: none), format: "png", width: 80%) diff --git a/tests/typ/visualize/pattern-small.typ b/tests/typ/visualize/pattern-small.typ index 8a63c374..1d289f92 100644 --- a/tests/typ/visualize/pattern-small.typ +++ b/tests/typ/visualize/pattern-small.typ @@ -14,6 +14,6 @@ ) --- -// Error: 22-52 pattern tile size must be non-zero -// Hint: 22-52 try setting the size manually +// Error: 15-52 pattern tile size must be non-zero +// Hint: 15-52 try setting the size manually #line(stroke: pattern(path((0pt, 0pt), (1em, 0pt)))) |
