-
Notifications
You must be signed in to change notification settings - Fork 30
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
Rename matcher Contains #45
Comments
I wonder if it would be possible to implement |
I'm still a beginner with Rust so I'm might be wrong, but I don't think this is possible to provide a generic implementation of On the other hand, what would be possible is changing |
I guess you're right. I don't know Rust well enough to know if that would be possible or not either. I'm OK with either name, but I would do it in two steps and just add Once that's in I would do a release and the new |
That might be possible in the future when RFC-1210 gets implemented. |
I do have motivation and some spare time, hence I could implement those changes :) |
That would be pretty cool @povilasb! |
Currently, the matcher
Contains
is used to assert that aVec
contains multiple elements.Would it be more appropriate to rename it
ContainsElements
orContainsAllOf
and have another matcherContains
to assert the presence of a single element in aVec
?Something like:
and
The text was updated successfully, but these errors were encountered: