Skip to content

Commit 7c43dd9

Browse files
committed
Add var test
1 parent 91741c8 commit 7c43dd9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

test/clojure/core_test/eval.cljc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333
(is (fn? (eval +)))
3434
(is (fn? (eval '+))))
3535

36+
(testing "Vars"
37+
;; eval'ing a var gets the value of the var
38+
(is (fn? (eval '(var +)))))
39+
3640
(testing "Symbol resolution"
3741
;; namespace qualified
3842
(is (= 42 (eval 'clojure.core-test.eval/x))))

0 commit comments

Comments
 (0)