summaryrefslogtreecommitdiff
path: root/tests/typ/code
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code')
-rw-r--r--tests/typ/code/ops-invalid.typ4
-rw-r--r--tests/typ/code/ops.typ2
-rw-r--r--tests/typ/code/repr.typ7
3 files changed, 5 insertions, 8 deletions
diff --git a/tests/typ/code/ops-invalid.typ b/tests/typ/code/ops-invalid.typ
index 5d371e91..1355181a 100644
--- a/tests/typ/code/ops-invalid.typ
+++ b/tests/typ/code/ops-invalid.typ
@@ -26,8 +26,8 @@
{not ()}
---
-// Error: 2-12 cannot apply '<=' to relative and relative
-{30% <= 40%}
+// Error: 2-18 cannot apply '<=' to linear and relative
+{30% + 1pt <= 40%}
---
// Special messages for +, -, * and /.
diff --git a/tests/typ/code/ops.typ b/tests/typ/code/ops.typ
index 201f86da..149837b2 100644
--- a/tests/typ/code/ops.typ
+++ b/tests/typ/code/ops.typ
@@ -146,6 +146,8 @@
#test(5 <= 5, true)
#test(5 <= 4, false)
#test(45deg < 1rad, true)
+#test(10% < 20%, true)
+#test(50% < 40% + 0pt, false)
---
// Test assignment operators.
diff --git a/tests/typ/code/repr.typ b/tests/typ/code/repr.typ
index 35a47e49..22890ff1 100644
--- a/tests/typ/code/repr.typ
+++ b/tests/typ/code/repr.typ
@@ -51,10 +51,5 @@
{() => none}
---
-// Test using the `repr` function.
-
-// Returns a string.
-#test(repr((1, 2, false, )), "(1, 2, false)")
-
-// Not in monospace
+// When using the `repr` function it's not in monospace.
#repr(23deg)