Skip to content

Commit

Permalink
Fix a test bug introduced by 430ba3b
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 601252048
  • Loading branch information
cushon authored and google-java-format Team committed Jan 24, 2024
1 parent b1dce94 commit 412d761
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,9 @@ public static Iterable<Object[]> data() throws IOException {
String expectedOutput = outputs.get(fileName);
Optional<Integer> version =
VERSIONED_TESTS.inverse().get(fileName).stream().collect(toOptional());
if (Runtime.version().feature() < version.orElse(Integer.MAX_VALUE)) {
continue;
if (Runtime.version().feature() >= version.orElse(Integer.MIN_VALUE)) {
testInputs.add(new Object[] {fileName, input, expectedOutput});
}
testInputs.add(new Object[] {fileName, input, expectedOutput});
}
return testInputs;
}
Expand Down

0 comments on commit 412d761

Please sign in to comment.