Skip to content

Commit 0a35f62

Browse files
committed
test: remove unnecessary wrappers around unparser
1 parent d18386f commit 0a35f62

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

src/test/java/VariationUnparserTest.java

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,18 +39,6 @@ public static Stream<Path> testsDiff() throws IOException {
3939
return findTestCases(testDirDiff, testCaseSuffixDiff);
4040
}
4141

42-
@ParameterizedTest
43-
@MethodSource("testsTree")
44-
public void testTreeDir(Path basename) throws IOException, DiffParseException {
45-
testCaseTree(basename);
46-
}
47-
48-
@ParameterizedTest
49-
@MethodSource("testsDiff")
50-
public void testDiffDir(Path basename) throws IOException, DiffParseException {
51-
testCaseDiff(basename);
52-
}
53-
5442
@Test
5543
public void testTree() throws IOException, DiffParseException {
5644
String source = Files.readString(Path.of("src", "test", "resources", "unparser", "test8.txt"));
@@ -76,7 +64,9 @@ public void testDiffSemEq() throws IOException, DiffParseException {
7664
removeWhitespace(VariationUnparser.undiff(temp, Time.AFTER), false));
7765
}
7866

79-
public static void testCaseTree(Path testCasePath) throws IOException, DiffParseException {
67+
@ParameterizedTest
68+
@MethodSource("testsTree")
69+
public void testCaseTree(Path testCasePath) throws IOException, DiffParseException {
8070
String temp = Files.readString(testCasePath);
8171
temp = temp.replaceAll("\\r\\n", "\n");
8272

@@ -97,7 +87,9 @@ public static void testCaseTree(Path testCasePath) throws IOException, DiffParse
9787
assertEquals(temp, unparse4);
9888
}
9989

100-
public static void testCaseDiff(Path testCasePath) throws IOException, DiffParseException {
90+
@ParameterizedTest
91+
@MethodSource("testsDiff")
92+
public void testCaseDiff(Path testCasePath) throws IOException, DiffParseException {
10193
String temp = Files.readString(testCasePath);
10294
temp = temp.replaceAll("\\r\\n", "\n");
10395

0 commit comments

Comments
 (0)