From f9e115daf54c29358f890b137f50a33a781af680 Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 30 Apr 2022 14:12:28 +0200 Subject: New block spacing model --- tests/typ/code/ops-invalid.typ | 4 ++++ tests/typ/code/ops.typ | 2 ++ 2 files changed, 6 insertions(+) (limited to 'tests/typ/code') diff --git a/tests/typ/code/ops-invalid.typ b/tests/typ/code/ops-invalid.typ index 1506d9c4..4e7fdb04 100644 --- a/tests/typ/code/ops-invalid.typ +++ b/tests/typ/code/ops-invalid.typ @@ -29,6 +29,10 @@ // Error: 2-18 cannot apply '<=' to relative length and ratio {30% + 1pt <= 40%} +--- +// Error: 2-13 cannot apply '<=' to length and length +{1em <= 10pt} + --- // Special messages for +, -, * and /. // Error: 03-10 cannot add integer and string diff --git a/tests/typ/code/ops.typ b/tests/typ/code/ops.typ index 53cf488e..1f2867bc 100644 --- a/tests/typ/code/ops.typ +++ b/tests/typ/code/ops.typ @@ -151,6 +151,8 @@ #test(45deg < 1rad, true) #test(10% < 20%, true) #test(50% < 40% + 0pt, false) +#test(40% + 0pt < 50% + 0pt, true) +#test(1em < 2em, true) --- // Test assignment operators. -- cgit v1.2.3