From 305524d005df075d53575552ee090fb53192a3fe Mon Sep 17 00:00:00 2001 From: Laurenz Date: Mon, 11 Sep 2023 14:42:43 +0200 Subject: Update tests for type system changes --- tests/typ/compiler/ops.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/typ/compiler/ops.typ') 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) } } -- cgit v1.2.3