summaryrefslogtreecommitdiff
path: root/tests/typ/compiler/ops.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2023-09-11 14:42:43 +0200
committerLaurenz <laurmaedje@gmail.com>2023-09-11 14:42:43 +0200
commit305524d005df075d53575552ee090fb53192a3fe (patch)
tree08b739e8fc41057b79a2d7ea7a7208ca358d60b3 /tests/typ/compiler/ops.typ
parentb471ac7d590abd2398ce25193b4e4df373bf2e9c (diff)
Update tests for type system changes
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)
}
}