diff options
| author | Mistivia <i@mistivia.com> | 2025-06-21 16:04:00 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-21 16:04:00 +0800 |
| commit | ca22ae606ca674a91e28597a96641c01f7eacb24 (patch) | |
| tree | 01fadb02db0ee2bffe9217373c304dae7c48e19d /tests/lisp/arithmetic.lisp | |
| parent | 1b2e36b342be527937ad350690023cb50190f1e0 (diff) | |
add tests
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")) |
