mirror of
https://github.com/java-diff-utils/java-diff-utils.git
synced 2026-03-13 10:11:17 +08:00
changes in package name
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
package testcase.diffutills;
|
||||
package diffutills;
|
||||
|
||||
import java.util.*;
|
||||
|
||||
@@ -65,4 +65,18 @@ public class DiffTest extends TestCase {
|
||||
}
|
||||
}), delta.getRevised());
|
||||
}
|
||||
|
||||
public void testDiff_EmptyList() {
|
||||
Patch patch = DiffUtils.diff(new ArrayList<String>(), new ArrayList<String>());
|
||||
assertNotNull(patch);
|
||||
assertEquals(patch.getDeltas().size(), 0);
|
||||
}
|
||||
|
||||
public void testDiff_EmptyListWithNonEmpty() {
|
||||
Patch patch = DiffUtils.diff(new ArrayList<String>(), Arrays.asList("aaa"));
|
||||
assertNotNull(patch);
|
||||
assertEquals(patch.getDeltas().size(), 1);
|
||||
Delta delta = patch.getDeltas().get(0);
|
||||
assertEquals(InsertDelta.class, delta.getClass());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user