View Source Machete.AnyMatcher (Machete v0.3.0)
Defines a matcher that matches against a set of matchers, requiring at least one of them to match
Summary
Functions
Matches against a set of matchers, requiring at least one of them to match
Types
@opaque t()
Describes an instance of this matcher
Functions
@spec any([Machete.Matchable.t()]) :: t()
Matches against a set of matchers, requiring at least one of them to match
Takes a list of matchers as its sole (mandatory) argument
Examples:
iex> assert "abc" ~> any([string(), integer()])
true
iex> refute :abc ~> any([string(), integer()])
false