README.md
# Matcher
Matcher library to make test code more expressive.
Inspired by [matcher-combinators][1] and [Hamcrest Matchers][2]
## Usage
```elixir
defmodule MyTest do
use ExUnit.Case
import Matcher
test "get_user/0" do
user = get_user()
assert matches?(%{email: "lorem@ipsum.com"}, user)
end
```
## Installation
The package can be installed by adding `matcher` to your list of dependencies in `mix.exs`:
```elixir
def deps do
[
{:matcher, "~> 0.0.1"}
]
end
```
The docs can be found at <https://hexdocs.pm/matcher>.
[1]: https://github.com/nubank/matcher-combinators
[2]: https://hamcrest.org/JavaHamcrest/javadoc/1.3/org/hamcrest/Matchers.html