-
Notifications
You must be signed in to change notification settings - Fork 534
TCK spec309_requestNegativeNumber may not always issue a negative request #352
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
Comments
Yes that's true, please
To exercise weird things, also large numbers. I don't see a problem with keeping the Random. |
Definitely will, but first I wanted to submit a PR about something else which may or may not conflict with changes to the class. |
I'd rather have a random number to trigger the same failure no matter how "negative" the number is. (also 0 is as illegal as negative) |
I meant subtracting 1 from the random value to make the spec correct in terms of the name. |
Correct me if I'm wrong, but
Random.nextInt(N)
may return 0, which is not negative thus the TCK testrequired_spec309_requestNegativeNumberMustSignalIllegalArgumentException
may not actually check for a negative value:Apart from that, is there a particular reason this check has to be random? Why not request some negative constant integer value?
The text was updated successfully, but these errors were encountered: