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

Add ContainElements matcher #370

Merged
merged 3 commits into from Jan 22, 2020
Merged

Add ContainElements matcher #370

merged 3 commits into from Jan 22, 2020

Conversation

ansd
Copy link
Collaborator

@ansd ansd commented Dec 8, 2019

Resolves #361.

This PR is based on top of the changes done in #369.

@nodo nodo self-assigned this Jan 9, 2020
matchers/contain_elements_matcher_test.go Show resolved Hide resolved
Comment on lines +26 to +29
edges := bipartiteGraph.LargestMatching()
if len(edges) == len(matchers) {
return true, nil
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's pretty cool +1

matchers/consist_of.go Outdated Show resolved Hide resolved
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.

ContainsElements matcher
3 participants