Skip to content

Commit c7deba1

Browse files
bendlasstuarthalloway
authored andcommitted
CLJ-1171 Tests for clojure.core/instance? compiler macro
Signed-off-by: Stuart Halloway <stu@thinkrelevance.com>
1 parent 5e95db7 commit c7deba1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/clojure/test_clojure/java_interop.clj

+4-1
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,11 @@
102102
java.lang.Integer false
103103
java.lang.Long true
104104
java.lang.Character false
105-
java.lang.String false ))
105+
java.lang.String false )
106106

107+
; test compiler macro
108+
(is (let [Long String] (instance? Long "abc")))
109+
(is (thrown? clojure.lang.ArityException (instance? Long))))
107110

108111
; set!
109112

0 commit comments

Comments
 (0)