summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/ref/code/call-invalid.pngbin2834 -> 2975 bytes
-rw-r--r--tests/ref/code/call.pngbin5972 -> 6150 bytes
-rw-r--r--tests/ref/code/dict.pngbin1612 -> 1602 bytes
-rw-r--r--tests/typ/code/call-invalid.typ1
-rw-r--r--tests/typ/code/call.typ5
-rw-r--r--tests/typ/code/dict.typ2
-rw-r--r--tests/typ/library/basic.typ2
7 files changed, 4 insertions, 6 deletions
diff --git a/tests/ref/code/call-invalid.png b/tests/ref/code/call-invalid.png
index e024e6ce..b2f62ac2 100644
--- a/tests/ref/code/call-invalid.png
+++ b/tests/ref/code/call-invalid.png
Binary files differ
diff --git a/tests/ref/code/call.png b/tests/ref/code/call.png
index ae05f617..fd2abbd8 100644
--- a/tests/ref/code/call.png
+++ b/tests/ref/code/call.png
Binary files differ
diff --git a/tests/ref/code/dict.png b/tests/ref/code/dict.png
index 09f69b56..730ff6d8 100644
--- a/tests/ref/code/dict.png
+++ b/tests/ref/code/dict.png
Binary files differ
diff --git a/tests/typ/code/call-invalid.typ b/tests/typ/code/call-invalid.typ
index a2c43abc..f5a5adc3 100644
--- a/tests/typ/code/call-invalid.typ
+++ b/tests/typ/code/call-invalid.typ
@@ -26,7 +26,6 @@
// Error: 1-3 expected function, found string
#x()
----
// Error: 3:1 expected closing bracket
#args[`a]`
diff --git a/tests/typ/code/call.typ b/tests/typ/code/call.typ
index dcf11806..76953580 100644
--- a/tests/typ/code/call.typ
+++ b/tests/typ/code/call.typ
@@ -57,10 +57,9 @@
#let a = "a"
-#args[a] \
#args(a) \
-#args(a, [b]) \
-#args(a)[b]
+#args[a] \
+#args(a, [b])
// Template can be argument or body depending on whitespace.
#if "template" == type[b] [Sure ]
diff --git a/tests/typ/code/dict.typ b/tests/typ/code/dict.typ
index 655a3299..b2fd3566 100644
--- a/tests/typ/code/dict.typ
+++ b/tests/typ/code/dict.typ
@@ -17,4 +17,4 @@
// Error: 3:5 expected comma
// Error: 2:12-2:16 expected identifier
// Error: 1:17-1:18 expected expression, found colon
-{(:1 b:[], true::)}
+{(:1 b:"", true::)}
diff --git a/tests/typ/library/basic.typ b/tests/typ/library/basic.typ
index dab0fc17..a6aa71af 100644
--- a/tests/typ/library/basic.typ
+++ b/tests/typ/library/basic.typ
@@ -3,7 +3,7 @@
---
#test(type("hi"), "string")
-#test(repr([Hi #rect[there]]), "[Hi [<node rect>]]")
+#test(repr((1, 2, false, )), "(1, 2, false)")
---
// Check the output.