-
Notifications
You must be signed in to change notification settings - Fork 407
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
Gen.chooseNum(0, Int.MaxValue) sometimes gives -1073741823 #338
Comments
As a work around, I'm using |
Actually, |
I'm using scalacheck 1.13.5 for scala 2.11. |
could you share an example? So far, I cannot reproduce this. Maybe it happened during shrinking? |
Agree. I cant 'get the most naive test of this to fail: Prop.forAll(Gen.choose(0, Int.MaxValue)) { x: Int =>
0 <= x && x <= Int.MaxValue
} When I intentionally modified the test so it fails, I did see that the shrinking could produce a negative.
That's a known issue with shrinkers, see #129, not with the generators. |
Curious about issue tracking and lifecycle process. Why is this issue still in Open status? |
@pford19 Lack of time. I want to bring in more maintainers and get better project management for ScalaCheck, but I have unfortunately not time for that either. |
:-) |
sounds like maybe we should just close this, since there's no clear issue here that isn't #129? |
Agreed, I think that issue tracks the problem, and |
@non am I understand correctly that disabling of legacy shrinking is not turned on by default in latest versions? |
I would expect this to not give any negative values.
The text was updated successfully, but these errors were encountered: