Current section

Files

Jump to
matcher lib matchers date.ex
Raw

lib/matchers/date.ex

defimpl Matcher.Protocol, for: Date do
import Matcher.Errors
def match(expected, actual, context) do
case Date.compare(expected, actual) do
:eq -> {:ok, nil}
_ -> error(context, [])
end
end
end