Closed GoogleCodeExporter closed 8 years ago
Add a test case for it and it looks good:
List<String> original = new ArrayList<String>();
List<String> revised = new ArrayList<String>();
original.add("test line1");
original.add("test line2");
original.add("test line 4");
original.add("test line 5");
revised.add("test line1");
revised.add("test line2");
revised.add("@@ -2,6 +2,7 @@");
revised.add("test line 4");
revised.add("test line 5");
Patch patch = DiffUtils.diff(original, revised);
List<String> udiff = DiffUtils.generateUnifiedDiff("original", "revised",
original, patch, 10);
DiffUtils.parseUnifiedDiff(udiff);
Resolving as invalid.
Original comment by dm.naume...@gmail.com
on 7 Jun 2011 at 11:51
Original issue reported on code.google.com by
meena...@gmail.com
on 5 Jun 2011 at 10:10Attachments: