mirror of
https://github.com/teo3300/rust-mal.git
synced 2026-01-12 01:05:32 +01:00
Moving String to MalStr (Rc<str>)
Because someone, somewhere, said that's better Signed-off-by: teo3300 <matteo.rogora@live.it>
This commit is contained in:
@ -2,6 +2,7 @@
|
||||
(assert (not (def! FALSE nil)))
|
||||
(assert (def! TRUE true))
|
||||
|
||||
(println :def)
|
||||
(def! value-0 0)
|
||||
(assert-eq value-0 0)
|
||||
(assert-eq
|
||||
@ -13,6 +14,7 @@
|
||||
(assert-fail '(def!))
|
||||
(assert-fail '(def! a))
|
||||
|
||||
(println :do)
|
||||
; do
|
||||
(assert-eq
|
||||
(do 1 2 3)
|
||||
@ -29,6 +31,7 @@
|
||||
|
||||
(assert-eq (do) nil)
|
||||
|
||||
(println :ififififififififif)
|
||||
; if
|
||||
(assert (if true 1))
|
||||
(assert (not (if false 1)))
|
||||
|
||||
Reference in New Issue
Block a user