Redefining most of the arithmetic symbols using lisp

Pfft, I don't need math, I only need -, < and =

Signed-off-by: teo3300 <matteo.rogora@live.it>
This commit is contained in:
teo3300
2024-01-18 18:37:49 +09:00
parent d8c045a5eb
commit 92e442b93d
3 changed files with 44 additions and 8 deletions

View File

@ -14,6 +14,9 @@
; /
(assert (= (/ 3 2) 1))
(assert (= (/ 2 3) 0))
(assert (= (/ -10 2) -5))
(assert (= (/ -10 -2) 5))
(assert (not (ok? (/ 12 0))))
; mod
(assert (= (mod 10 4) 2))