diff options
| author | Laurenz <laurmaedje@gmail.com> | 2022-01-13 14:11:23 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2022-01-13 14:14:00 +0100 |
| commit | c7f52ed0489de0c144d4684a26f557b7a6ee182e (patch) | |
| tree | f775d85bbad3c7b6e99b3b11049371ca1f24435d /tests/typ | |
| parent | e74ae6ce70d4c6ca006613eadf07f920951789e3 (diff) | |
Add `even` and `odd` functions
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/utility/math.typ | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/typ/utility/math.typ b/tests/typ/utility/math.typ index c01d497f..705db937 100644 --- a/tests/typ/utility/math.typ +++ b/tests/typ/utility/math.typ @@ -12,6 +12,13 @@ #test(abs(50%), 50%) --- +// Test the `even` and `odd` functions. +#test(even(2), true) +#test(odd(2), false) +#test(odd(-1), true) +#test(even(-11), false) + +--- // Error: 6-16 cannot take absolute value of a linear #abs(10pt + 50%) |
