summaryrefslogtreecommitdiff
path: root/tests/typ/code/ops.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/code/ops.typ')
-rw-r--r--tests/typ/code/ops.typ4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/code/ops.typ b/tests/typ/code/ops.typ
index b5a4d8d4..53cf488e 100644
--- a/tests/typ/code/ops.typ
+++ b/tests/typ/code/ops.typ
@@ -63,8 +63,8 @@
test(v + v, 2.0 * v)
}
- // Relative lengths cannot be divided by themselves.
- if type(v) != "relative length" {
+ // Lengths cannot be divided by themselves.
+ if "length" not in type(v) {
test(v / v, 1.0)
test(v / v == 1, true)
}