-
-
Notifications
You must be signed in to change notification settings - Fork 540
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 more specific variants of contain (continued) #1145
Conversation
Looks promising, although I don't yet see what you intend to do with |
@dennisdoomen I intend to remove Now the problem I'm having is how to get good failure messages as in the original PR. Any ideas welcome. |
Using reflection we can read whether the passed delegate method was one of the predefined by FA options and display appropriate message. If the user passes a lambda instead, a more generic message will be shown, such as Sounds good? |
@dennisdoomen @jnyrup What do you think about this implementation? |
It most definitely looks promising. |
Is there anything left before we can do a proper review? |
@dennisdoomen As far as From what I remember, last I was working on this I was concerned about the possibility of making this functionality reusable as suggested by I believe this should be discussed before this PR is merged. |
The |
@dennisdoomen Fair enough. One more question that I have is in which namespace should Other than that, you guys are free to review this PR. 👍 |
I'll take a look |
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.
Looks very good. For maintainability reasons, I have mostly minor comments. But I hope you can find the time to apply those suggestions.
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.
I haven't been giving this PR much attention lately, but it seems to getting in really good shape.
This function is a prime example of the (exhausting) prototyping-feedback loop when altering an API.
I found it somewhat difficult to review the tests and their seems to have been quite some rearrangement of the tests (unless it's just git diff confusing me).
It seems like the tests were rearranged in #962, which is the basis of this PR. That's something that confused me as well honestly. |
@danielmpetrov Let me know if I should do the tedious work of untangling the re-arrangement of the tests. |
I'll give it a try 😅 |
@jnyrup This is a git diff issue... I've reverted the test file to match the one on |
@jnyrup Ok, good news. I cleaned up some duplicate tests, and the diff appears properly now. I guess the duplicated code snippets messed git up. |
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.
Thanks for doing the re-arrangement and duplication removal!
It made reviewing the tests a piece of cake.
It's your favorite failing test - Please tell me if anything else needs work on this PR @jnyrup @dennisdoomen |
Hi,
I am attempting to finish off #962, since @mkolumb seems to be MIA.
There was quite the conversation around this change, and the agreed non-breaking API was described here - #962 (comment)
Now, I picked off where the last PR was at, and changed the API to be backwards compatible as described by @jnyrup, but I need some help on what would be the best way to get good failure messages for predefined delegates.
Closes #818 and Resolves #962