summaryrefslogtreecommitdiff
path: root/tests/typ/compiler
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/compiler')
-rw-r--r--tests/typ/compiler/array.typ4
-rw-r--r--tests/typ/compiler/block.typ2
-rw-r--r--tests/typ/compiler/call.typ7
-rw-r--r--tests/typ/compiler/let.typ2
-rw-r--r--tests/typ/compiler/ops-prec.typ2
-rw-r--r--tests/typ/compiler/string.typ2
6 files changed, 10 insertions, 9 deletions
diff --git a/tests/typ/compiler/array.typ b/tests/typ/compiler/array.typ
index 59e9f70b..a96a800f 100644
--- a/tests/typ/compiler/array.typ
+++ b/tests/typ/compiler/array.typ
@@ -256,10 +256,10 @@
#(1, 2, 3).at(-4)
---
-// Error: 4 expected closing paren
+// Error: 3-4 unclosed delimiter
#{(}
-// Error: 3-4 unexpected closing paren
+// Error: 2-3 unclosed delimiter
#{)}
// Error: 4-6 unexpected end of block comment
diff --git a/tests/typ/compiler/block.typ b/tests/typ/compiler/block.typ
index 81c719da..386994e9 100644
--- a/tests/typ/compiler/block.typ
+++ b/tests/typ/compiler/block.typ
@@ -138,7 +138,7 @@
}
---
-// Error: 3 expected closing brace
+// Error: 2-3 unclosed delimiter
#{
---
diff --git a/tests/typ/compiler/call.typ b/tests/typ/compiler/call.typ
index 04eb2906..77e17b50 100644
--- a/tests/typ/compiler/call.typ
+++ b/tests/typ/compiler/call.typ
@@ -94,13 +94,14 @@
#func((x):1)
---
-// Error: 2:1 expected closing bracket
+// Error: 6-7 unclosed delimiter
#func[`a]`
---
-// Error: 8 expected closing paren
+// Error: 7-8 unclosed delimiter
#{func(}
---
-// Error: 2:1 expected quote
+// Error: 6-7 unclosed delimiter
+// Error: 1:7-2:1 unclosed string
#func("]
diff --git a/tests/typ/compiler/let.typ b/tests/typ/compiler/let.typ
index d9940a8c..825f9e7b 100644
--- a/tests/typ/compiler/let.typ
+++ b/tests/typ/compiler/let.typ
@@ -227,7 +227,7 @@ Three
// Terminated by semicolon even though we are in a paren group.
// Error: 18 expected expression
-// Error: 18 expected closing paren
+// Error: 11-12 unclosed delimiter
#let v5 = (1, 2 + ; Five
// Error: 9-13 expected identifier, found boolean
diff --git a/tests/typ/compiler/ops-prec.typ b/tests/typ/compiler/ops-prec.typ
index b90030f8..d3fe01b5 100644
--- a/tests/typ/compiler/ops-prec.typ
+++ b/tests/typ/compiler/ops-prec.typ
@@ -32,5 +32,5 @@
#test((1), 1)
#test((1+2)*-3, -9)
-// Error: 14 expected closing paren
+// Error: 8-9 unclosed delimiter
#test({(1 + 1}, 2)
diff --git a/tests/typ/compiler/string.typ b/tests/typ/compiler/string.typ
index ddd0f7ff..9a4b4146 100644
--- a/tests/typ/compiler/string.typ
+++ b/tests/typ/compiler/string.typ
@@ -204,5 +204,5 @@
#test("a123c".split(regex("\d+")), ("a", "c"))
---
-// Error: 2:1 expected quote
+// Error: 2-2:1 unclosed string
#"hello\"