|
|
@ -44,6 +44,7 @@ |
|
|
|
package org.eclipse.jgit.util; |
|
|
|
package org.eclipse.jgit.util; |
|
|
|
|
|
|
|
|
|
|
|
import static org.junit.Assert.assertEquals; |
|
|
|
import static org.junit.Assert.assertEquals; |
|
|
|
|
|
|
|
import static org.junit.Assert.assertFalse; |
|
|
|
import static org.junit.Assert.assertTrue; |
|
|
|
import static org.junit.Assert.assertTrue; |
|
|
|
import static org.junit.Assert.fail; |
|
|
|
import static org.junit.Assert.fail; |
|
|
|
|
|
|
|
|
|
|
@ -185,6 +186,16 @@ public class IntListTest { |
|
|
|
assertEquals(2, i.get(1)); |
|
|
|
assertEquals(2, i.get(1)); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
|
|
|
|
public void testContains() { |
|
|
|
|
|
|
|
IntList i = new IntList(); |
|
|
|
|
|
|
|
i.add(1); |
|
|
|
|
|
|
|
i.add(4); |
|
|
|
|
|
|
|
assertTrue(i.contains(1)); |
|
|
|
|
|
|
|
assertTrue(i.contains(4)); |
|
|
|
|
|
|
|
assertFalse(i.contains(2)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Test |
|
|
|
@Test |
|
|
|
public void testToString() { |
|
|
|
public void testToString() { |
|
|
|
final IntList i = new IntList(); |
|
|
|
final IntList i = new IntList(); |
|
|
|