This commit is contained in:
1 parent
ac128356c2
commit
f7d966d1e5
7 files changed
+84
-36
No files matched your search
@@ -11,6 +11,7 @@
|
||||
(t/is (= false (sut/read "#false"))))
|
||||
(t/testing "symbol"
|
||||
(t/is (= 'abc (sut/read "abc")))
|
||||
(t/is (= '... (sut/read "...")))
|
||||
(t/is (= 'truth-nuke (sut/read "truth-nuke"))))
|
||||
(t/testing "list"
|
||||
(t/is (= (list) (sut/read "()")))
|
||||
|
||||
@@ -127,4 +127,15 @@
|
||||
(t/is (= '(1 3 6)
|
||||
(sut/transcribe* '(x ...)
|
||||
'((x _ ...) ...)
|
||||
'((1 2) (3 4 5) (6 7 8 9))))))
|
||||
'((1 2) (3 4 5) (6 7 8 9)))))
|
||||
(t/testing "preservation of lexical context"
|
||||
;; 나는 테스트를 더 작성하고 싶지만 너무 귀찮을겠다…ㅠㅠ
|
||||
(t/is (= '#{A}
|
||||
(scm/syntax-context
|
||||
(sut/transcribe
|
||||
#scm/stx [(#scm/stx [x #{A}])
|
||||
#{A}]
|
||||
(sut/unify #scm/stx [(#scm/stx [x #{A}])
|
||||
#{A}]
|
||||
#scm/stx [(#scm/stx [123 #{A}])
|
||||
#{A}])))))))
|
||||
Reference in new issue
Block a user