Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Check empty arrrays handled OK

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/lang/trunk@1394318 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information...
commit 5c218b0ef305f5b87e7ad42a991ece7448579b70 1 parent 46ae477
Sebastian Bazley authored
View
4 src/test/java/org/apache/commons/lang3/ArrayUtilsRemoveMultipleTest.java
@@ -461,6 +461,10 @@ public void testRemoveAllNullFloatArray() {
@Test
public void testRemoveAllIntArray() {
int[] array;
+ array = ArrayUtils.removeAll(ArrayUtils.EMPTY_INT_ARRAY, ArrayUtils.EMPTY_INT_ARRAY);
+ assertTrue(Arrays.equals(ArrayUtils.EMPTY_INT_ARRAY, array));
+ array = ArrayUtils.removeAll(new int[] { 1 }, ArrayUtils.EMPTY_INT_ARRAY);
+ assertTrue(Arrays.equals(new int[] { 1 }, array));
array = ArrayUtils.removeAll(new int[] { 1 }, 0);
assertTrue(Arrays.equals(ArrayUtils.EMPTY_INT_ARRAY, array));
assertEquals(Integer.TYPE, array.getClass().getComponentType());
Please sign in to comment.
Something went wrong with that request. Please try again.