mirror of
https://github.com/janet-lang/janet
synced 2025-10-17 08:47:39 +00:00
Fix import macro to not coerce everything to string.
This commit is contained in:
@@ -57,4 +57,8 @@
|
||||
(assert (= nil (curenv 1000000)) "curenv 3")
|
||||
(assert (= root-env (curenv 1)) "curenv 4")
|
||||
|
||||
# Import macro test
|
||||
(assert-no-error "import macro 1" (macex '(import a :as b :fresh maybe)))
|
||||
(assert (deep= ~(,import* "a" :as "b" :fresh maybe) (macex '(import a :as b :fresh maybe))) "import macro 2")
|
||||
|
||||
(end-suite)
|
||||
|
Reference in New Issue
Block a user