-
-
Notifications
You must be signed in to change notification settings - Fork 602
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 SatisfyAllOf matcher #511
Conversation
expect(false).toNot(satisfyAllOf(beFalse())) | ||
} | ||
failsWithErrorMessage( | ||
"expected to not match all of: {be greater than <10.5>}, and {be less than <100.75>}, and {be close to <50.1> (within 0.0001)}, got 50.10001") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 152 characters (line_length)
expect(2).to(satisfyAllOf(equal(3), equal(4), equal(5))) | ||
} | ||
failsWithErrorMessage( | ||
"expected to match all of: {all be less than 4, but failed first at element <5> in <[5, 6, 7]>}, and {equal <[5, 6, 7]>}, got [5, 6, 7]") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line Length Violation: Line should be 120 characters or less: currently 147 characters (line_length)
@wongzigii Cool! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👏
Implement SatisfyAllOf matcher
Address #503
Add
SatisfyAllOf
matcher and&&
operator to extend the existedSatisfyAnyOf
and||
matcher, since theallPass
matcher can only predicate one condition for each.