Skip to content

Commit

Permalink
Tiny test fix (for manually run test)
Browse files Browse the repository at this point in the history
cowtowncoder committed Oct 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 2b6e05c commit 686dd45
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -90,7 +90,8 @@ void divBy1000Sampled()
// Comment out for manual testing:
@Disabled
void divBy1000FullRange() {
for (int number = 0; number <= Integer.MAX_VALUE; ++number) {
// To get to Integer.MAX_VALUE, need to check for overflow
for (int number = 0; number >= 0; ++number) {
int expected = number / 1000;
int actual = NumberOutput.divBy1000(number);
if (expected != actual) { // only construct String if fail

0 comments on commit 686dd45

Please sign in to comment.