diff options
| author | Mistivia <i@mistivia.com> | 2025-06-22 16:17:20 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-22 16:17:20 +0800 |
| commit | 5c0eddbed7f838daac17e0b9d9c2a23f17da4660 (patch) | |
| tree | 583026ff5f0614d6e6672e6bbb7879c24c701236 /tests | |
| parent | b19a0b2ea246be5610812bf7dd4088e0c4a70952 (diff) | |
min, max
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/arithmetic.lisp | 7 |
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")) |
