(match matcher actual)
Returns a map indicating whether the actual
value matches expected
.
expected
can be the expected value, a matcher, or a predicate fn of actual.
Return map includes the following keys:
Returns a map indicating whether the `actual` value matches `expected`. `expected` can be the expected value, a matcher, or a predicate fn of actual. 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