diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-04-30 14:12:28 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-04-30 14:12:28 +0200 |
| commit | f9e115daf54c29358f890b137f50a33a781af680 (patch) | |
| tree | 496de52246629ea8039db6beea94eb779ed2851d /tests/typ/code | |
| parent | f7c67cde72e6a67f45180856b332bae9863243bd (diff) | |
New block spacing model
Diffstat (limited to 'tests/typ/code')
| -rw-r--r-- | tests/typ/code/ops-invalid.typ | 4 | ||||
| -rw-r--r-- | tests/typ/code/ops.typ | 2 |
2 files changed, 6 insertions, 0 deletions
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 @@ -30,6 +30,10 @@ {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 {(1 + "2", 40% - 1)} 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. |
