Skip to content

Commit b9fa82b

Browse files
committed
test: reuse directory constants in the unparsing tests
1 parent 0a35f62 commit b9fa82b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/java/VariationUnparserTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public static Stream<Path> testsDiff() throws IOException {
4141

4242
@Test
4343
public void testTree() throws IOException, DiffParseException {
44-
String source = Files.readString(Path.of("src", "test", "resources", "unparser", "test8.txt"));
44+
String source = Files.readString(testDirTree.resolve("test8.txt"));
4545
VariationTree<DiffLinesLabel> tree = VariationTree.fromText(source, VariationTreeSource.Unknown,
4646
VariationDiffParseOptions.Default);
4747
String temp = VariationUnparser.variationTreeUnparser(tree);
@@ -52,7 +52,7 @@ public void testTree() throws IOException, DiffParseException {
5252
@Test
5353
public void testDiffSemEq() throws IOException, DiffParseException {
5454
String source = Files
55-
.readString(Path.of("src", "test", "resources", "unparser", "diff", "diff.diff"));
55+
.readString(testDirTree.resolve("diff").resolve("diff.diff"));
5656
VariationDiff<DiffLinesLabel> diff = VariationDiff.fromDiff(source, VariationDiffParseOptions.Default);
5757
String temp = VariationUnparser.variationDiffUnparser(diff);
5858

0 commit comments

Comments
 (0)