Added a simple test for macroexpand
This commit is contained in:
parent
a34db9119b
commit
2e60d6b47b
@ -775,7 +775,13 @@
|
|||||||
(.append y x))
|
(.append y x))
|
||||||
(assert (= y [5])))
|
(assert (= y [5])))
|
||||||
|
|
||||||
|
|
||||||
(defn test-empty-list []
|
(defn test-empty-list []
|
||||||
"Evaluate an empty list to a []"
|
"Evaluate an empty list to a []"
|
||||||
(assert (= () [])))
|
(assert (= () [])))
|
||||||
|
|
||||||
|
|
||||||
|
(defn test-macroexpand []
|
||||||
|
"Test macroexpand on ->"
|
||||||
|
(assert (= (macroexpand '(-> (a b) (x y)))
|
||||||
|
'(x (a b) y))))
|
||||||
|
Loading…
Reference in New Issue
Block a user