Machete.AllMatcher (Machete v0.3.11)
View SourceDefines a matcher that matches against a set of matchers, requiring all of them to match
Summary
Functions
Matches against a set of matchers, requiring all of them to match
Types
Functions
@spec all([Machete.Matchable.t()]) :: t()
Matches against a set of matchers, requiring all of them to match
Takes a list of matchers as its sole (mandatory) argument
Examples:
iex> assert "abc" ~> all([term(), string()])
true
iex> refute :abc ~> all([term(), string()])
false