Skip to content

Commit

Permalink
Remove conditional logic for logging and test failure.
Browse files Browse the repository at this point in the history
Co-authored-by: drivenflywheel <[email protected]>
  • Loading branch information
ldhardy and drivenflywheel authored Jan 8, 2025
1 parent 93a6c65 commit 45e8a06
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,8 @@ public static void testRegexPattern(Pattern patternUnderTest, @Nullable List<Str
fineGrainTestCount++;
}
}
if (fineGrainTestCount == 0) {
fail("Didn't test anything.");
} else {
logger.debug("Successfully asserted {} regex test cases.", fineGrainTestCount);
}
assertTrue(fineGrainTestCount > 0, "No regex assertions performed.");
logger.debug("Successfully asserted {} regex test cases.", fineGrainTestCount);
}


Expand Down

0 comments on commit 45e8a06

Please sign in to comment.