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

Implement MapAssertion assertions for BTreeMap #78

Merged
merged 2 commits into from
Jan 19, 2024

Conversation

kelebra
Copy link
Contributor

@kelebra kelebra commented Jan 6, 2024

Step 2 for #66 in BTreeMap support or specifically an implementation of MapAssertion for BTreeMap. We adjusted the MapLike trait to properly expose utility functions (get, keys etc) and used those in changed MapAssertion to be implemented for any MapLike.

The most important part is that the apporach taken here would not require existing customers to change any code which was tricky considering the hash_map::Keys being returns previously for key set assertion :)

@kelebra
Copy link
Contributor Author

kelebra commented Jan 19, 2024

Pinging @cocuh for review 😅

@cocuh
Copy link
Collaborator

cocuh commented Jan 19, 2024

Oops, I missed this PR. Thank you for the ping!

@cocuh cocuh merged commit 63acbff into google:master Jan 19, 2024
5 checks passed
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