-
Couldn't load subscription status.
- Fork 1.4k
Implement Refined Gen instances (#4602) #5144
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
Conversation
Remove unnecessary parentheses Implement hex char gens Implement DigitInstances Implement NetInstances Add types package Implement CharInstances Implement NumericInstances Implement StringInstances Implement string DeriveGens Implement TimeInstances Fix range
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 great! Just a couple of minor comments.
| */ | ||
| def filterNot(f: A => Boolean): Gen[R, A] = | ||
| filter(a => !(f(a))) | ||
| filter(a => !f(a)) |
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.
Stray change?
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.
Minor refactoring.
Shouldn't I commit this change in this PR?
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.
No need to add additional parentheses to code that is already compiling.
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.
Yeah, I removed unnecessary parentheses.
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.
👍
| def fromIterable[R, A]( | ||
| as: Iterable[A], | ||
| shrinker: (A => ZStream[R, Nothing, A]) = defaultShrinker | ||
| shrinker: A => ZStream[R, Nothing, A] = defaultShrinker |
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.
Stray change?
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.
Minor refactoring.
Shouldn't I commit this change in this PR?
Co-authored-by: Adam Fraser <[email protected]>
No description provided.