summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/ops.typ
diff options
context:
space:
mode:
Diffstat (limited to 'tests/typ/compiler/ops.typ')
-rw-r--r--tests/typ/compiler/ops.typ4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/typ/compiler/ops.typ b/tests/typ/compiler/ops.typ
index 937e9024..56fdb721 100644
--- a/tests/typ/compiler/ops.typ
+++ b/tests/typ/compiler/ops.typ
@@ -79,11 +79,11 @@
test(v + v, 2 * v)
// Integer addition does not give a float.
- if type(v) != "integer" {
+ if type(v) != int {
test(v + v, 2.0 * v)
}
- if "relative" not in type(v) and ("pt" not in repr(v) or "em" not in repr(v)) {
+ if type(v) != relative and ("pt" not in repr(v) or "em" not in repr(v)) {
test(v / v, 1.0)
}
}