Liking cljdoc? Tell your friends :D
All platforms.

matcher-combinators.standalone

An API for using matcher-combinators outside the context of a test framework

An API for using matcher-combinators outside the context of a test framework
raw docstring

matchclj/s

(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:

  • :match/result - either :match or :mismatch
  • :mismatch/detail - the actual value with mismatch annotations. Only present when :match/result is :mismatch
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
sourceraw docstring

match?clj/s

(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.
sourceraw docstring

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

× close