diff options
| author | Mistivia <i@mistivia.com> | 2025-06-21 17:19:11 +0800 |
|---|---|---|
| committer | Mistivia <i@mistivia.com> | 2025-06-21 17:19:11 +0800 |
| commit | fec7a34cdc55f226e69d98267e42fa4b52b0193c (patch) | |
| tree | 8ac2bc5f7c6372a722a080757c2b6f0f6ed12fc1 /tests/arithmetic.lisp | |
| parent | 1de8cda84460198e764a94c1f0f106ecaf001331 (diff) | |
move test files
Diffstat (limited to 'tests/arithmetic.lisp')
| -rw-r--r-- | tests/arithmetic.lisp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/arithmetic.lisp b/tests/arithmetic.lisp new file mode 100644 index 0000000..2764b10 --- /dev/null +++ b/tests/arithmetic.lisp @@ -0,0 +1,12 @@ +(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")) + |
