diff options
Diffstat (limited to 'tests/lisp/arithmetic.lisp')
| -rw-r--r-- | tests/lisp/arithmetic.lisp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/lisp/arithmetic.lisp b/tests/lisp/arithmetic.lisp new file mode 100644 index 0000000..658bcda --- /dev/null +++ b/tests/lisp/arithmetic.lisp @@ -0,0 +1,11 @@ +(assert (= 1 (+ 1 0))) +(assert (= -1 (- 0 1))) +(assert (= -1 (- 1))) +(assert (= 1.1 (+ 1 0.1))) +(assert (= 2 (i/ 11 5))) +(assert (= 1 (mod 11 5))) + +(assert-error (+ 1 "a")) +(assert-error (- 1 "a")) +(assert-error (* 1 "a")) +(assert-error (/ 1 "a")) |
