As the title suggests. The error message for the enum_string/have.ex assertions has been extended.
It now actually talks about keys and values. It also returns a diff_fn for a positive match with the expected and actual data.
Before
Expected `[a: 1]` to have `{:a, 2}`, but it has not.
After
Expected `[a: 1]` to have `2` for key `:a`, but it has not.
expected: 1
actual: 2
In addition it extends the CheckErrorSharedSpec to allow checking for an extra in the raised error. This is used to test the inclusion of the diff in the have assertion and also for eq whose spec has been extended.
As the title suggests. The error message for the
enum_string/have.ex
assertions has been extended.It now actually talks about keys and values. It also returns a
diff_fn
for a positive match with the expected and actual data.Before
After
In addition it extends the
CheckErrorSharedSpec
to allow checking for anextra
in the raised error. This is used to test the inclusion of the diff in thehave
assertion and also foreq
whose spec has been extended.