Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testRemoveMiddle (0.12 sec)

  1. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

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

        assertThat(rangeSet.complement().asRanges())
            .containsExactly(Range.lessThan(3), Range.greaterThan(3))
            .inOrder();
      }
    
      public void testRemoveMiddle() {
        TreeRangeSet<Integer> rangeSet = TreeRangeSet.create();
        rangeSet.add(Range.atMost(6));
        rangeSet.remove(Range.closedOpen(3, 4));
        testInvariants(rangeSet);
        assertThat(rangeSet.asRanges())
    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