summaryrefslogtreecommitdiff
path: root/tests/typ/code
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code')
-rw-r--r--tests/typ/code/call.typ10
-rw-r--r--tests/typ/code/closure.typ6
-rw-r--r--tests/typ/code/dict.typ6
-rw-r--r--tests/typ/code/import.typ7
-rw-r--r--tests/typ/code/spread.typ2
5 files changed, 15 insertions, 16 deletions
diff --git a/tests/typ/code/call.typ b/tests/typ/code/call.typ
index 0285c8a2..5a3f45f9 100644
--- a/tests/typ/code/call.typ
+++ b/tests/typ/code/call.typ
@@ -79,17 +79,17 @@
// Error: 8 expected comma
#func(1 2)
-// Error: 7-8 expected identifier
+// Error: 7-8 expected identifier, found integer
// Error: 9 expected expression
#func(1:)
-// Error: 7-8 expected identifier
+// Error: 7-8 expected identifier, found integer
#func(1:2)
-// Error: 7-12 expected identifier
-#func("abc":2)
+// Error: 7-12 expected identifier, found string
+#func("abc": 2)
-// Error: 7-10 expected identifier
+// Error: 7-10 expected identifier, found group
{func((x):1)}
---
diff --git a/tests/typ/code/closure.typ b/tests/typ/code/closure.typ
index 45f232ca..aa7bc5b9 100644
--- a/tests/typ/code/closure.typ
+++ b/tests/typ/code/closure.typ
@@ -145,13 +145,13 @@
}
---
-// Error: 6-16 expected identifier, named pair or argument sink
+// Error: 6-16 expected identifier, named pair or argument sink, found keyed pair
{(a, "named": b) => none}
---
-// Error: 10-15 expected identifier
+// Error: 10-15 expected identifier, found string
#let foo("key": b) = key
---
-// Error: 10-14 expected identifier
+// Error: 10-14 expected identifier, found `none`
#let foo(none: b) = key
diff --git a/tests/typ/code/dict.typ b/tests/typ/code/dict.typ
index 00c78c17..80097761 100644
--- a/tests/typ/code/dict.typ
+++ b/tests/typ/code/dict.typ
@@ -49,12 +49,12 @@
---
// Simple expression after already being identified as a dictionary.
-// Error: 9-10 expected named or keyed pair, found expression
+// Error: 9-10 expected named or keyed pair, found identifier
{(a: 1, b)}
// Identified as dictionary due to initial colon.
-// Error: 4-5 expected named or keyed pair, found expression
+// Error: 4-5 expected named or keyed pair, found integer
// Error: 5 expected comma
-// Error: 12-16 expected identifier or string
+// Error: 12-16 expected identifier or string, found boolean
// Error: 17-18 expected expression, found colon
{(:1 b:"", true::)}
diff --git a/tests/typ/code/import.typ b/tests/typ/code/import.typ
index 312ee676..dab91dae 100644
--- a/tests/typ/code/import.typ
+++ b/tests/typ/code/import.typ
@@ -71,11 +71,11 @@ This is never reached.
// Error: 8 expected keyword `from`
#import
-// Error: 9-19 expected identifier
+// Error: 9-19 expected identifier, found string
// Error: 19 expected keyword `from`
#import "file.typ"
-// Error: 16-19 expected identifier
+// Error: 16-19 expected identifier, found string
// Error: 22 expected keyword `from`
#import afrom, "b", c
@@ -108,7 +108,6 @@ This is never reached.
// A star in the list.
// Error: 12-13 expected expression, found star
-// Error: 13-14 expected expression, found comma
#import a, *, b from "target.typ"
// An item after a star.
@@ -117,5 +116,5 @@ This is never reached.
#import *, a from "target.typ"
---
-// Error: 9-13 expected identifier
+// Error: 9-13 expected identifier, found named pair
#import a: 1 from ""
diff --git a/tests/typ/code/spread.typ b/tests/typ/code/spread.typ
index a41e04b9..86dbfd98 100644
--- a/tests/typ/code/spread.typ
+++ b/tests/typ/code/spread.typ
@@ -62,7 +62,7 @@
#min(.."nope")
---
-// Error: 8-14 expected identifier, named pair or argument sink
+// Error: 8-14 expected identifier, named pair or argument sink, found spread
#let f(..true) = none
---