summaryrefslogtreecommitdiff
path: root/tests/typ/code
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-06-09 10:45:49 +0200
committerLaurenz <laurmaedje@gmail.com>2021-06-09 10:45:49 +0200
commitedff2ae6803928e59eae96e2f75cd62a7e24c76f (patch)
tree7b7f3f546dac8f1639d4331948ea8227f925f2f8 /tests/typ/code
parent5afb42ad89abb518a01a09051f0f9b6f75bd383e (diff)
Remove template pretty printing
Was buggy and pretty useless anyway since it couldn't peek into function templates.
Diffstat (limited to 'tests/typ/code')
-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
3 files changed, 3 insertions, 5 deletions
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::)}