summaryrefslogtreecommitdiff
path: root/tests/typ/utility
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-10-05 19:45:38 +0200
committerLaurenz <laurmaedje@gmail.com>2021-10-05 19:45:38 +0200
commitae05dc08765b8db8e149a56627cd29a878a0bce5 (patch)
tree36a45bb9308784d514d6cb8aa1d257440e213686 /tests/typ/utility
parent0a23bfbc23ec68ed229b78c8f9995928c133c4a6 (diff)
Always use first positional argument in `expect()`
This changes `#h(100)` from "missing argument: spacing" to "expected linear, found integer".
Diffstat (limited to 'tests/typ/utility')
-rw-r--r--tests/typ/utility/collection.typ2
-rw-r--r--tests/typ/utility/math.typ2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/utility/collection.typ b/tests/typ/utility/collection.typ
index a97184d3..92ec2867 100644
--- a/tests/typ/utility/collection.typ
+++ b/tests/typ/utility/collection.typ
@@ -19,7 +19,7 @@
#len()
---
-// Error: 6-10 expected string, array or dictionary
+// Error: 6-10 expected string, array or dictionary, found length
#len(12pt)
---
diff --git a/tests/typ/utility/math.typ b/tests/typ/utility/math.typ
index aeb0d6ad..7217babe 100644
--- a/tests/typ/utility/math.typ
+++ b/tests/typ/utility/math.typ
@@ -16,7 +16,7 @@
#abs(10pt + 50%)
---
-// Error: 6-17 expected numeric value
+// Error: 6-17 expected numeric value, found string
#abs("no number")
---