# `Machete.SubsetMatcher`
[🔗](https://github.com/mtrudel/machete/blob/main/lib/machete/matchers/subset_matcher.ex#L1)

Defines a matcher that matches maps which are a subset of a specified map

# `t`

```elixir
@opaque t()
```

Describes an instance of this matcher

# `subset`

```elixir
@spec subset(map()) :: t()
```

Matches maps which are a subset of a specified map

Takes a map as its sole (mandatory) argument

Examples:
    iex> assert %{a: 1} ~> subset(%{a: 1})
    true

    iex> assert %{a: 1} ~> subset(%{a: 1, b: 1})
    true

---

*Consult [api-reference.md](api-reference.md) for complete listing*
