Liking cljdoc? Tell your friends :D

matcher-combinators.test

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.
raw docstring

build-match-assertclj

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))`
sourceraw docstring

match-roughly?clj/s

(match-roughly? delta matcher actual)
source

match-with?clj/s

(match-with? type->matcher matcher actual)
source

match?clj/s

(match? matcher actual)
source

thrown-match?clj/s

(thrown-match? matcher actual)
(thrown-match? exception-class matcher actual)
source

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close