From 712c00ecb72b67da2c0788e5d3eb4dcc6366b2a7 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Fri, 8 Apr 2022 15:08:26 +0200 Subject: Em units --- tests/typ/code/ops.typ | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/typ/code') 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) } -- cgit v1.2.3