Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testAddAll (0.09 sec)

  1. android/guava-tests/test/com/google/common/collect/EvictingQueueTest.java

        assertEquals(0, queue.remainingCapacity());
    
        assertEquals("two", queue.remove());
        assertEquals(2, queue.size());
        assertEquals(1, queue.remainingCapacity());
      }
    
      public void testAddAll() throws Exception {
        EvictingQueue<String> queue = EvictingQueue.create(3);
        assertEquals(0, queue.size());
        assertEquals(3, queue.remainingCapacity());
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 15 17:36:06 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            assertArrayEquals(new Integer[] { 1, 2 }, ArrayUtil.asArray(1, 2));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testAddAll() throws Exception {
            final String[] array = new String[] { "111" };
            final String[] newArray = ArrayUtil.add(array, "222");
            assertThat(newArray.length, is(2));
            assertThat(newArray[0], is("111"));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

        assertEquals(Range.closed(7, 10), rangeSet.rangeContaining(8));
        assertTrue(rangeSet.contains(8));
        assertNull(rangeSet.rangeContaining(6));
        assertFalse(rangeSet.contains(6));
      }
    
      public void testAddAll() {
        RangeSet<Integer> rangeSet = TreeRangeSet.create();
        rangeSet.add(Range.closed(3, 10));
        rangeSet.addAll(asList(Range.open(1, 3), Range.closed(5, 8), Range.closed(9, 11)));
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
Back to top