Matcher

Matcher library to make test code more expressive.

Inspired by matcher-combinators and Hamcrest Matchers

Usage

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:

def deps do
  [
    {:matcher, "~> 0.0.1"}
  ]
end

The docs can be found at https://hexdocs.pm/matcher.