Add test for unquote-splice behavior
This commit is contained in:
parent
48dd968461
commit
6a7d97c286
@ -82,3 +82,14 @@
|
|||||||
(setv opt (quote &optional))
|
(setv opt (quote &optional))
|
||||||
(assert (isinstance opt hy.HyLambdaListKeyword))
|
(assert (isinstance opt hy.HyLambdaListKeyword))
|
||||||
(assert (= (str opt) "&optional")))
|
(assert (= (str opt) "&optional")))
|
||||||
|
|
||||||
|
(defmacro doodle [&rest body]
|
||||||
|
`(do ~@body))
|
||||||
|
|
||||||
|
(defn test-unquote-splice []
|
||||||
|
"NATIVE: test unquote-splice does what's intended"
|
||||||
|
(assert (=
|
||||||
|
(doodle
|
||||||
|
[1 2 3]
|
||||||
|
[4 5 6])
|
||||||
|
[4 5 6])))
|
||||||
|
Loading…
Reference in New Issue
Block a user