function | since v0.0-2496 | clojure.core/test | Edit |
(test v)
test [v] finds fn at key :test in var metadata and calls it, presuming failure will throw exception
(defn test
[v]
(let [f (.-cljs$lang$test v)]
(if f
(do (f) :ok)
:no-test)))