jjh42 / mock

Mocking library for Elixir language
MIT License
639 stars 81 forks source link

Add a test for argument assertion using maps #144

Open mrnovalles opened 5 months ago

mrnovalles commented 5 months ago

While using the called function with Map arguments I noticed that the matching was not exact, but that a map with different amount of key/values was still being mapped.

This PR adds a test to make sure that this is no longer the case and that assertion of a called function where an argument is a map is always against the same exact map.

The meck counterpart PR is: https://github.com/eproxus/meck/pull/244 Tests will not be green until this PR is merged and a meck version bump is made.