Current section

Files

Jump to
matcher lib matchers date.ex
Raw

lib/matchers/date.ex

defimpl Matcher.Protocol, for: Date do
def match(expected, actual) do
case Date.compare(expected, actual) do
:eq -> {:ok, nil}
# TODO
_ -> {:error, %{}}
end
end
end