tests
This commit is contained in:
1 parent
7700b231c9
commit
0f1287b760
4 files changed
+15
-16
No files matched your search
@@ -9,6 +9,15 @@
|
||||
(t/deftest symtable-for-env-test
|
||||
(t/is (s/valid? ::sut/symtable (sut/symtable-for-env sut/scheme-base-env))))
|
||||
|
||||
(t/deftest nearest-test
|
||||
(t/is (= [:primitive 'lambda]
|
||||
(sut/lookup ['lambda #{}]
|
||||
sut/scheme-base-env
|
||||
(sut/symtable-for-env sut/scheme-base-env))))
|
||||
(t/is (= [#{0 1}]
|
||||
(sut/nearest ['x #{0 1 2}]
|
||||
[#{0} #{0 1} #{0 3}]))))
|
||||
|
||||
(t/deftest expand-test
|
||||
(t/testing "unbound symbol"
|
||||
(t/is (thrown? Exception (sut/expand 'x))))
|
||||
|
||||
Reference in new issue
Block a user