commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1394318 - /commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsRemoveMultipleTest.java
Date Thu, 04 Oct 2012 22:55:43 GMT
Author: sebb
Date: Thu Oct  4 22:55:43 2012
New Revision: 1394318

URL: http://svn.apache.org/viewvc?rev=1394318&view=rev
Log:
Check empty arrrays handled OK

Modified:
    commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsRemoveMultipleTest.java

Modified: commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsRemoveMultipleTest.java
URL: http://svn.apache.org/viewvc/commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsRemoveMultipleTest.java?rev=1394318&r1=1394317&r2=1394318&view=diff
==============================================================================
--- commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsRemoveMultipleTest.java
(original)
+++ commons/proper/lang/trunk/src/test/java/org/apache/commons/lang3/ArrayUtilsRemoveMultipleTest.java
Thu Oct  4 22:55:43 2012
@@ -461,6 +461,10 @@ public class ArrayUtilsRemoveMultipleTes
     @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());



Mime
View raw message