Machete.TruthyMatcher (Machete v0.3.11)
View SourceDefines a matcher that matches truthy values
Summary
Types
Describes the arguments that can be passed to this matcher
Describes an instance of this matcher
Functions
Matches against truthy values.
Types
Functions
Matches against truthy values.
Takes no arguments
Examples:
iex> assert true ~> truthy()
true
iex> assert 123 ~> truthy()
true
iex> refute false ~> truthy()
false
iex> refute nil ~> truthy()
false