macro | previously cljs.spec.test/check-fn | ![]() | Edit |
(check-fn f spec)
(check-fn f spec opts)
Runs generative tests for fn f using spec and opts. See 'check' for options and return.
(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#))))