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

contains: add ContainsSubset assertion #101

Merged
merged 1 commit into from
Jan 21, 2023
Merged

contains: add ContainsSubset assertion #101

merged 1 commit into from
Jan 21, 2023

Conversation

shoenig
Copy link
Owner

@shoenig shoenig commented Jan 21, 2023

This PR adds a ContainsSubset assertion for asserting a Container
contains each element in a slice of elements.

Closes #97

Note that ContainsAll is not technically possible for the Container interface which only mandates a Contains method - no way to know if it contains additional elements.

This PR adds a ContainsSubset assertion for asserting a Container
contains each element in a slice of elements.
@shoenig shoenig merged commit 7124e31 into main Jan 21, 2023
@shoenig shoenig deleted the contains-subset branch December 15, 2023 15:17
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.

idea: missing ContainsSubset, ContainsAll
1 participant