expand test
This commit is contained in:
1 parent
8116f2ca62
commit
02ec06609f
3 files changed
+46
-17
No files matched your search
+15
-1
@@ -34,7 +34,21 @@
|
||||
'{[x #{a b}] [:lexical x A]
|
||||
[x #{a}] [:lexical x B]}))))
|
||||
|
||||
(t/deftest expand-test)
|
||||
(defn- expand [stx]
|
||||
(-> #:library {:name '(user)
|
||||
:declarations [[:import '(primitives+builtins)]
|
||||
[:begin stx]]}
|
||||
sut/expand-library
|
||||
:library/declarations
|
||||
second
|
||||
second
|
||||
scm/syntax->datum))
|
||||
|
||||
(t/deftest expand-test
|
||||
(t/is (= '(lambda (x) x)
|
||||
(expand #scm/stx (#scm/stx lambda
|
||||
#scm/stx (#scm/stx x)
|
||||
#scm/stx x)))))
|
||||
|
||||
|
||||
;;; specs
|
||||
|
||||
Reference in new issue
Block a user