1
1
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:
Nicolas Boulenguez 2019-05-25 19:15:00 +02:00
parent a4cb289ffb
commit 3d352522ba

View File

@ -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)