- Notifications
You must be signed in to change notification settings - Fork366
Feat: throw an exception instead on testInteger & testLong#1194
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
@mrigger The checks are passing. Please review the changes. Thanks! |
bhavaniprasad-tech left a comment
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.
@test
public void testIntegerValidRange() {
Randomly r = new Randomly();
for (int i = 0; i < 100; i++) {
int val = r.getInteger(5, 10);
assertTrue(val >= 5 && val <= 10);
}
}
bhavaniprasad-tech commentedApr 8, 2025
Add input validation for getInteger() and update corresponding test
|
SharmaNishchay commentedApr 9, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I think the |
Uh oh!
There was an error while loading.Please reload this page.
Closes#1161