Assertion-testing style edit
This commit is contained in:
parent
4b0296d257
commit
cd1d12565d
@ -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?"
|
||||
|
Loading…
Reference in New Issue
Block a user