-
Notifications
You must be signed in to change notification settings - Fork 627
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
#1184 Add shouldHaveSingleElement matcher with predicate #1186
#1184 Add shouldHaveSingleElement matcher with predicate #1186
Conversation
Thansk for the PR. I was thinking more that this matcher would not use the lambda to test for one element that passes the predicate (but allows more), but that there's a single element and then executes the lambda. What do you think? |
Yes, it makes perfect sense and seems usable. I think if it was confusing for me from the ticket's description, it can be confusing for users too. Can we think about better naming? |
Yes the ticket was poor wording by me.
shouldBeSingleElement maybe ?
…On Mon, 3 Feb 2020 at 14:43, Ignat Simonenko ***@***.***> wrote:
Yes, it makes perfect sense and seems usable. I think if it was confusing
for me from the ticket's description, it can be confusing for users too.
Can we think about better naming?
Maybe it makes more sense to extend shouldBeSingleton matcher with a
lambda parameter?
—
You are receiving this because your review was requested.
Reply to this email directly, view it on GitHub
<#1186>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAFVSGVXMQGTHJDSQXJCJMTRBB6VJANCNFSM4KOSCC2Q>
.
|
@sksamuel I've added a new matcher |
…o feature/1184-add-should-have-single-element-matcher-with-predicate
Lets go with your naming. |
Closes: #1184