1
0
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:
Calvin Rose
2020-08-27 07:46:00 -05:00
parent 5dda83dc73
commit a31e079f93
5 changed files with 27 additions and 10 deletions

View File

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