Integration with clojure.test or cljs.test (depending on which platform you're running on).
This namespace provides useful placeholder vars for match?, match-with?, thrown-match? and match-roughly?; the placeholders are nil (the actual implementations are extended via the clojure.test/assert-expr multimethod), but importing these will prevent linters from flagging otherwise undefined names.
Even if not concerned about linting, it is necessary to have some namespace require matcher-combinators.test to ensure that match? and friends can be used withing clojure.test/is.
Commonly, a dev-only user namespace will require this namespace.
Integration with clojure.test or cljs.test (depending on which platform you're running on). This namespace provides useful placeholder vars for match?, match-with?, thrown-match? and match-roughly?; the placeholders are nil (the actual implementations are extended via the clojure.test/assert-expr multimethod), but importing these will prevent linters from flagging otherwise undefined names. Even if not concerned about linting, it is necessary to have some namespace require matcher-combinators.test to ensure that match? and friends can be used withing clojure.test/is. Commonly, a dev-only user namespace will require this namespace.
Allows you to define a custom clojure.test match assert:
(defmethod clojure.test/assert-expr 'abs-value? [msg form] (build-match-assert 'abs-value? [int? abs-value-matcher] msg form))
Allows you to define a custom clojure.test match assert: `(defmethod clojure.test/assert-expr 'abs-value? [msg form] (build-match-assert 'abs-value? [int? abs-value-matcher] msg form))`
(thrown-match? matcher actual)
(thrown-match? exception-class matcher actual)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close