-
Notifications
You must be signed in to change notification settings - Fork 2
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
arrayContainsAll #1
Comments
What comparison function would you implement for that? |
I would also add an option to provide custom compare function ... e.g. I have complex objects in an array and want to compare them by certain field(s) and others I don't care |
Custom compare function is an awesome idea. Might be introduced to quite a few assertions. On the other hand, if you're using a custom function, why not just do an ad-hoc assertion with |
I think a custom compare function makes sense when the assertion is complex (e. g. using a loop under the hood). E. g. it's useless to introduce a custom compare function to What do you think? |
Solution will bubble up during implementation and some real use case ... will start from simple |
For use case, like
it is nice to implement simplified form:
The text was updated successfully, but these errors were encountered: