summaryrefslogtreecommitdiff
path: root/tests/typ/compiler
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2024-02-21 15:11:35 +0100
committerGitHub <noreply@github.com>2024-02-21 14:11:35 +0000
commit56ecd6c806ab32a7cca5289500504e398198d283 (patch)
tree1b6fd1b34922d2877a714398beedb20f3e6cd317 /tests/typ/compiler
parent23756f9e8b0e3bf5b3e1126f681024575cca4529 (diff)
Wider callsite span (#3466)
Diffstat (limited to 'tests/typ/compiler')
-rw-r--r--tests/typ/compiler/closure.typ2
-rw-r--r--tests/typ/compiler/delayed-error.typ4
-rw-r--r--tests/typ/compiler/spread.typ2
3 files changed, 4 insertions, 4 deletions
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)
}