assertTrue(diffService.compare(revision.patch(original), empty));
}
public void testTwoDeletes() throws Exception
{
DiffService diffService = new DiffServiceImpl(getAlgo());
Revision revision = diffService.diff(original, rev1);
assertEquals(2, revision.size());
assertTrue(revision.getDelta(0) instanceof DeleteDelta);
assertTrue(revision.getDelta(1) instanceof DeleteDelta);
assertTrue(diffService.compare(revision.patch(original), rev1));
assertEquals("3d2" + DiffService.NL + "< [3] three" + DiffService.NL + "9d7" + DiffService.NL + "< [9] nine"
+ DiffService.NL, revision.toString());
}