File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
java/com/github/difflib/unifieddiff
resources/com/github/difflib/unifieddiff Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,10 @@ public void testParseIssue51() throws IOException {
155155 UnifiedDiffFile file1 = diff .getFiles ().get (0 );
156156 assertThat (file1 .getFromFile ()).isEqualTo ("f1" );
157157 assertThat (file1 .getPatch ().getDeltas ().size ()).isEqualTo (1 );
158+
159+ UnifiedDiffFile file2 = diff .getFiles ().get (1 );
160+ assertThat (file2 .getFromFile ()).isEqualTo ("f2" );
161+ assertThat (file2 .getPatch ().getDeltas ().size ()).isEqualTo (1 );
158162
159163 assertThat (diff .getTail ()).isNull ();
160164 }
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ diff -U0 old/f2 new/f2
88--- old/f2 2019-09-25 14:38:14.000000000 +0200
99+++ new/f2 2019-09-25 14:38:32.000000000 +0200
1010@@ -1 +1 @@
11- - a\nc
11+ - a\nc
12+ + a\nb\nd
You can’t perform that action at this time.
0 commit comments