Machete.NoneMatcher (Machete v0.3.11)

View Source

Defines a matcher that matches against a set of matchers, requiring none of them to match

Summary

Types

t()

Describes an instance of this matcher

Functions

Matches against a set of matchers, requiring none of them to match

Types

t()

@opaque t()

Describes an instance of this matcher

Functions

none(matchers)

@spec none([Machete.Matchable.t()]) :: t()

Matches against a set of matchers, requiring none of them to match

Takes a list of matchers as its sole (mandatory) argument

Examples:

iex> assert "abc" ~> none([integer(), float()])
true

iex> refute :abc ~> all([atom(), string()])
false