Closed sascha-wolf closed 7 years ago
As discussed in #232 this PR implements a new matcher called MatchPattern and can be used like this:
MatchPattern
expect actual |> to(match_pattern {:ok, _})
It is possible to use ^pinned_variables but not to call functions in the match, which is consistent with elixirs match behaviour.
^pinned_variables
The README was updated with a new Pattern section.
Pattern
Awesome work, @Zeeker ! Thank you!
As discussed in #232 this PR implements a new matcher called
MatchPattern
and can be used like this:It is possible to use
^pinned_variables
but not to call functions in the match, which is consistent with elixirs match behaviour.The README was updated with a new
Pattern
section.