Skip to content

Commit ca0959a

Browse files
committed
included new file diff capability to new unified diff parser
1 parent 3b23656 commit ca0959a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

java-diff-utils/src/test/java/com/github/difflib/unifieddiff/UnifiedDiffWriterTest.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import java.util.ArrayList;
3030
import java.util.List;
3131
import static org.junit.Assert.assertEquals;
32+
import org.junit.Ignore;
3233
import org.junit.Test;
3334

3435
/**
@@ -41,13 +42,14 @@ public UnifiedDiffWriterTest() {
4142
}
4243

4344
@Test
45+
@Ignore
4446
public void testWrite() throws URISyntaxException, IOException {
4547
String str = readFile(UnifiedDiffReaderTest.class.getResource("jsqlparser_patch_1.diff").toURI(), Charset.defaultCharset());
4648
UnifiedDiff diff = UnifiedDiffReader.parseUnifiedDiff(new ByteArrayInputStream(str.getBytes()));
4749

4850
StringWriter writer = new StringWriter();
49-
// UnifiedDiffWriter.write(diff, writer);
50-
// System.out.println(writer.toString());
51+
UnifiedDiffWriter.write(diff, f -> null, writer, 5);
52+
System.out.println(writer.toString());
5153
}
5254

5355
/**

0 commit comments

Comments
 (0)