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 {
155
155
UnifiedDiffFile file1 = diff .getFiles ().get (0 );
156
156
assertThat (file1 .getFromFile ()).isEqualTo ("f1" );
157
157
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 );
158
162
159
163
assertThat (diff .getTail ()).isNull ();
160
164
}
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ diff -U0 old/f2 new/f2
8
8
--- old/f2 2019-09-25 14:38:14.000000000 +0200
9
9
+++ new/f2 2019-09-25 14:38:32.000000000 +0200
10
10
@@ -1 +1 @@
11
- - a\nc
11
+ - a\nc
12
+ + a\nb\nd
You can’t perform that action at this time.
0 commit comments