Liking cljdoc? Tell your friends :D

matcher-combinators.matchers


absentclj/s

Value-position matcher for maps that matches when containing map doesn't have the key pointing to this matcher.

Value-position matcher for maps that matches when containing map doesn't have the key pointing to this matcher.
sourceraw docstring

embedsclj/s

(embeds expected)

Matcher that will match when the map contains some of the same key/values as the expected map.

Matcher that will match when the map contains some of the same key/values as
the `expected` map.
sourceraw docstring

equalsclj/s

(equals expected)

Matcher that will match when the given value is exactly the same as the expected.

Matcher that will match when the given value is exactly the same as the
`expected`.
sourceraw docstring

in-any-orderclj/s

(in-any-order expected)

Matcher that will match when the given a list that is the same as the expected list but with elements in a different order.

Similar to Midje's (just expected :in-any-order)

Matcher that will match when the given a list that is the same as the
`expected` list but with elements in a different order.

Similar to Midje's `(just expected :in-any-order)`
sourceraw docstring

prefixclj/s

(prefix expected)

Matcher that will match when provided a (ordered) prefix of the expected list.

Similar to Midje's (embeds expected)

Matcher that will match when provided a (ordered) prefix of the `expected`
list.

Similar to Midje's `(embeds expected)`
sourceraw docstring

regexclj/s

(regex expected)

Matcher that will match when given value matches the expected regular expression.

Matcher that will match when given value matches the `expected` regular expression.
sourceraw docstring

set-embedsclj/s

(set-embeds expected)

Matches a set in the way (embeds some-set) would, but accepts sequences as the expected matcher argument, allowing one to use matchers with the same submatcher appearing more than once.

Matches a set in the way `(embeds some-set)` would, but accepts sequences
as the expected matcher argument, allowing one to use matchers with the same
submatcher appearing more than once.
sourceraw docstring

set-equalsclj/s

(set-equals expected)

Matches a set in the way (equals some-set) would, but accepts sequences as the expected matcher argument, allowing one to use matchers with the same submatcher appearing more than once.

Matches a set in the way `(equals some-set)` would, but accepts sequences as
the expected matcher argument, allowing one to use matchers with the same
submatcher appearing more than once.
sourceraw docstring

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

× close