Machete.SupersetMatcher (machete v0.2.0)
Defines a matcher that matches maps which are a superset of a specified map
Link to this section Summary
Functions
Matches maps which are a superset of a specified map
Link to this section Types
@opaque t()
Describes an instance of this matcher
Link to this section Functions
Link to this function
superset(map)
Matches maps which are a superset of a specified map
Takes a map as its sole (mandatory) argument
Examples:
iex> assert %{a: 1} ~> superset(%{a: 1})
true
iex> assert %{a: 1, b: 1} ~> superset(%{a: 1})
true