Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 507ced4

Browse files
committed
fixes #114 - decompressing deltas
1 parent 7e8d286 commit 507ced4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

java-diff-utils/src/test/java/com/github/difflib/text/DiffRowGeneratorTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ public void testIssue86WrongInlineDiff() throws IOException {
608608

609609
DiffRowGenerator generator = DiffRowGenerator.create()
610610
.showInlineDiffs(true)
611-
.mergeOriginalRevised(false)
611+
.mergeOriginalRevised(true)
612612
.inlineDiffByWord(true)
613613
.oldTag(f -> "~")
614614
.newTag(f -> "**")
@@ -617,9 +617,9 @@ public void testIssue86WrongInlineDiff() throws IOException {
617617
Arrays.asList(original.split("\n")),
618618
Arrays.asList(revised.split("\n")));
619619

620-
for (DiffRow diff : rows) {
621-
System.out.println(diff);
622-
}
620+
rows.stream()
621+
.filter(item -> item.getTag() != DiffRow.Tag.EQUAL)
622+
.forEach(System.out::println);
623623
}
624624

625625
@Test

0 commit comments

Comments
 (0)