aboutsummaryrefslogtreecommitdiff
path: root/tests/arithmetic.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/arithmetic.lisp')
-rw-r--r--tests/arithmetic.lisp7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/arithmetic.lisp b/tests/arithmetic.lisp
index 6175705..e8634d7 100644
--- a/tests/arithmetic.lisp
+++ b/tests/arithmetic.lisp
@@ -17,6 +17,13 @@
(assert (/= 2 1.0))
(assert (not (/= 1 1)))
+(assert (= 1.0 (max -2 0.1 0.2 1)))
+(assert (= 1.0 (min 1 2.0 3.2 4 100)))
+(assert (= 3 (max 3)))
+(assert (= 3 (min 3)))
+(assert-error (max))
+(assert-error (min))
+
(assert-error (+ 1 "a"))
(assert-error (- 1 "a"))
(assert-error (* 1 "a"))