mirror of
https://github.com/kanaka/mal.git
synced 2024-10-26 14:22:25 +03:00
test: when testing macroexpand, do not assume that quasiquote is a special
This allows to test rewritting quasiquote as a macro, and should change nothing else in theory.
This commit is contained in:
parent
a4cb289ffb
commit
3d352522ba
@ -12,7 +12,7 @@
|
||||
;=>7
|
||||
(unless true 7 8)
|
||||
;=>8
|
||||
(defmacro! unless2 (fn* (pred a b) `(if (not ~pred) ~a ~b)))
|
||||
(defmacro! unless2 (fn* (pred a b) (list 'if (list 'not pred) a b)))
|
||||
(unless2 false 7 8)
|
||||
;=>7
|
||||
(unless2 true 7 8)
|
||||
|
Loading…
Reference in New Issue
Block a user