View Source Machete.AtomMatcher (Machete v0.2.5)
Defines a matcher that matches atom values
Link to this section Summary
Types
Describes the arguments that can be passed to this matcher
Describes an instance of this matcher
Functions
Matches against atom values
Link to this section Types
@type opts() :: []
Describes the arguments that can be passed to this matcher
@opaque t()
Describes an instance of this matcher
Link to this section Functions
Matches against atom values
Takes no arguments
Examples:
iex> assert :a ~> atom()
true
iex> refute "a" ~> atom()
false