-
Notifications
You must be signed in to change notification settings - Fork 122
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
Shrinkers should be able to provide a Stream #220
Comments
@pholser What's your opinion on the public API of
I'm in favor of 1) since the consumer impact is minimal, and easy to explain in the documentation. |
@sir4ur0n What do you think of option 3: same as option 2, but deprecate the |
I would imagine removing the |
Sounds good. I'll try to give it a shot in the coming days. Any idea/opinion about when 1.0 lands? |
@sir4ur0n I don't have any particular time in mind for committing to a 1.0 release. |
Most List implementation (in particular, all from the JDK) are strict, meaning we may spend time building shrinks that will never even be tested.
Java 8's Streams can be lazy, enabling library consumers to wrap their shrunk value computation inside some lazy structure (e.g. a Supplier), and Junit Quickcheck would only process values until one doesn't pass.
Ideally this should be done after #219 as it may change the way shrinking works.
The text was updated successfully, but these errors were encountered: