mirror of
https://github.com/teo3300/rust-mal.git
synced 2026-01-12 09:15:32 +01:00
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:
@ -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))
|
||||
|
||||
Reference in New Issue
Block a user