map?

Matcher

protocol

members

describe-mismatch

(describe-mismatch this a)

returns a human readable string of the mismatch of the matcher and the value given. It is an *error* to call describe-mismatch without checking match first, and you should expect unspecified behavior, exceptions, and so on.

re-matches

run-match

(run-match matcher a)

runs a matcher, given a value to match against.
Returns a map:
if the matcher matches the value:
{:pass? true}
if the matcher fails:
{:pass? false
:matcher matcher
:expected (a string)
:was (a string)}
the results can be made human readable with (format-message result)