(match matcher actual)
Returns a map indicating whether the actual
value matches the matcher
.
matcher
can be a matcher-combinators matcher, a predicate function of
actual, an expression that returns a value, or a literal value.
actual
can be an expression that returns the actual value, or a literal.
Return map includes the following keys:
Returns a map indicating whether the `actual` value matches the `matcher`. `matcher` can be a matcher-combinators matcher, a predicate function of actual, an expression that returns a value, or a literal value. `actual` can be an expression that returns the actual value, or a literal. Return map includes the following keys: - :match/result - either :match or :mismatch - :mismatch/detail - the actual value with mismatch annotations. Only present when :match/result is :mismatch
(match? matcher)
(match? matcher actual)
Given a matcher
and actual
, returns true
if
(match matcher actual)
results in a match. Else, returns false.
Given only a matcher
, returns a function that will
return true or false by the same logic.
Given a `matcher` and `actual`, returns `true` if `(match matcher actual)` results in a match. Else, returns `false.` Given only a `matcher`, returns a function that will return true or false by the same logic.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close