Skip to content

Commit 0d1cf1c

Browse files
committed
fix: Test actually indented failures in JPPParserTest
Lines which aren't comments are identified beforehand and thus never passed to this JPP parser. Fortunately, the comments suggest the intend which the new test cases should now implement.
1 parent 7d324c8 commit 0d1cf1c

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/test/java/JPPParserTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ private static List<JPPParserTest.ThrowingTestCase> throwingTestCases() {
8585

8686
// Empty formula
8787
new JPPParserTest.ThrowingTestCase("//#if"),
88-
new JPPParserTest.ThrowingTestCase("#if defined()"),
89-
new JPPParserTest.ThrowingTestCase("#if ${} > 0"),
88+
new JPPParserTest.ThrowingTestCase("//#if defined()"),
89+
new JPPParserTest.ThrowingTestCase("//#if ${} > 0"),
9090

9191
// incomplete expressions
92-
new JPPParserTest.ThrowingTestCase("#if 1 >"),
93-
new JPPParserTest.ThrowingTestCase("#if == 2"),
94-
new JPPParserTest.ThrowingTestCase("#if ${version} > ")
92+
new JPPParserTest.ThrowingTestCase("//#if 1 >"),
93+
new JPPParserTest.ThrowingTestCase("//#if == 2"),
94+
new JPPParserTest.ThrowingTestCase("//#if ${version} > ")
9595
);
9696
}
9797

0 commit comments

Comments
 (0)