Assertion-testing style edit

This commit is contained in:
Kodi Arfer 2016-10-11 15:48:40 -07:00
parent 4b0296d257
commit cd1d12565d

View File

@ -35,8 +35,9 @@
(defn assert-requires-num [f]
(for [x ["foo" [] None]]
(assert-true (try (do (f x) False)
(except [e [TypeError]] True)))))
(try (f x)
(except [TypeError] True)
(else (assert False)))))
(defn test-coll? []
"NATIVE: testing coll?"