summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-01-13 14:11:23 +0100
committerLaurenz <laurmaedje@gmail.com>2022-01-13 14:14:00 +0100
commitc7f52ed0489de0c144d4684a26f557b7a6ee182e (patch)
treef775d85bbad3c7b6e99b3b11049371ca1f24435d /tests
parente74ae6ce70d4c6ca006613eadf07f920951789e3 (diff)
Add `even` and `odd` functions
Diffstat (limited to 'tests')
-rw-r--r--tests/typ/utility/math.typ7
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%)