Skip to content

Commit

Permalink
Tiny test fix (for manually run test)
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Oct 22, 2024
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
Expand Up @@ -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
Expand Down

0 comments on commit 686dd45

Please sign in to comment.