cljs.spec.test/check-fn

MOVED, please see cljs.spec.test.alpha/check-fn
macroremoved v1.9.542added v1.9.14Edit
(check-fn f spec)
(check-fn f spec opts)

Source docstring:
Runs generative tests for fn f using spec and opts. See
'check' for options and return.
Source code @ clojurescript:src/main/cljs/cljs/spec/test.cljc
(defmacro check-fn
  ([f spec]
   `(check-fn ~f ~spec nil))
  ([f spec opts]
   `(let [opts# ~opts]
      (validate-check-opts opts#)
      (check-1 nil ~f ~spec opts#))))