Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue #170: bug in shouldContainSame for Map #171

Conversation

Murtaught
Copy link
Contributor

@Murtaught Murtaught commented Nov 24, 2019

Description
This PR fixes issue #170.
I added a new test with check that shouldContainSame throws an exception when the map compared to only has a subset of keys found in this map. In other words, compared maps definitely did not contain same elements, but this case wasn't caught by existing tests.

Then I fixed function shouldContainSame itself as I believe the problem was caused by simple literal error hidden by one-line formatting.

Checklist

  • I've added my name to the AUTHORS file, if it wasn't already present.

@MarkusAmshove MarkusAmshove merged commit 6014f52 into MarkusAmshove:master Nov 28, 2019
@MarkusAmshove
Copy link
Owner

Thank you for the contribution, this is now part of v1.58 :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants