Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for testIndexOf (0.11 sec)

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

            list.add(1, "4");
            assertThat(list.get(1), is("4"));
            assertThat(list.get(2), is("2"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIndexOf() throws Exception {
            list.addLast(null);
            list.addLast("1");
            list.addLast("2");
            list.addLast("3");
            assertThat(list.indexOf(null), is(0));
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  2. src/test/java/org/codelibs/core/collection/ArrayMapTest.java

            map.put("3", null);
            assertThat(map.containsKey("3"), is(true));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testIndexOf() throws Exception {
            assertThat(map.indexOf("test"), is(1));
            assertThat(map.indexOf(null), is(0));
            assertThat(map.indexOf("test3"), is(-1));
        }
    
        /**
         * @throws Exception
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  3. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

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

        assertThat(Bytes.contains(ARRAY234, (byte) 2)).isTrue();
        assertThat(Bytes.contains(ARRAY234, (byte) 3)).isTrue();
        assertThat(Bytes.contains(ARRAY234, (byte) 4)).isTrue();
      }
    
      public void testIndexOf() {
        assertThat(Bytes.indexOf(EMPTY, (byte) 1)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY1, (byte) 2)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY234, (byte) 1)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThat(Chars.contains(ARRAY234, (char) 2)).isTrue();
        assertThat(Chars.contains(ARRAY234, (char) 3)).isTrue();
        assertThat(Chars.contains(ARRAY234, (char) 4)).isTrue();
      }
    
      public void testIndexOf() {
        assertThat(Chars.indexOf(EMPTY, (char) 1)).isEqualTo(-1);
        assertThat(Chars.indexOf(ARRAY1, (char) 2)).isEqualTo(-1);
        assertThat(Chars.indexOf(ARRAY234, (char) 1)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(Bytes.contains(ARRAY234, (byte) 2)).isTrue();
        assertThat(Bytes.contains(ARRAY234, (byte) 3)).isTrue();
        assertThat(Bytes.contains(ARRAY234, (byte) 4)).isTrue();
      }
    
      public void testIndexOf() {
        assertThat(Bytes.indexOf(EMPTY, (byte) 1)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY1, (byte) 2)).isEqualTo(-1);
        assertThat(Bytes.indexOf(ARRAY234, (byte) 1)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 17.3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThrows(IndexOutOfBoundsException.class, () -> iia.get(3));
    
        ImmutableDoubleArray sub = iia.subArray(1, 2);
        assertThrows(IndexOutOfBoundsException.class, () -> sub.get(-1));
      }
    
      public void testIndexOf() {
        ImmutableDoubleArray iia = ImmutableDoubleArray.of(1, 1, 2, 3, 5, 8);
        assertThat(iia.indexOf(1)).isEqualTo(0);
        assertThat(iia.indexOf(8)).isEqualTo(5);
        assertThat(iia.indexOf(4)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

              .that(Doubles.contains(new double[] {5.0, value}, value))
              .isTrue();
        }
        assertThat(Doubles.contains(new double[] {5.0, NaN}, NaN)).isFalse();
      }
    
      public void testIndexOf() {
        assertThat(Doubles.indexOf(EMPTY, (double) 1)).isEqualTo(-1);
        assertThat(Doubles.indexOf(ARRAY1, (double) 2)).isEqualTo(-1);
        assertThat(Doubles.indexOf(ARRAY234, (double) 1)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 32.2K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        assertThrows(IndexOutOfBoundsException.class, () -> iia.get(3));
    
        ImmutableIntArray sub = iia.subArray(1, 2);
        assertThrows(IndexOutOfBoundsException.class, () -> sub.get(-1));
      }
    
      public void testIndexOf() {
        ImmutableIntArray iia = ImmutableIntArray.of(1, 1, 2, 3, 5, 8);
        assertThat(iia.indexOf(1)).isEqualTo(0);
        assertThat(iia.indexOf(8)).isEqualTo(5);
        assertThat(iia.indexOf(4)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThrows(IndexOutOfBoundsException.class, () -> iia.get(3));
    
        ImmutableDoubleArray sub = iia.subArray(1, 2);
        assertThrows(IndexOutOfBoundsException.class, () -> sub.get(-1));
      }
    
      public void testIndexOf() {
        ImmutableDoubleArray iia = ImmutableDoubleArray.of(1, 1, 2, 3, 5, 8);
        assertThat(iia.indexOf(1)).isEqualTo(0);
        assertThat(iia.indexOf(8)).isEqualTo(5);
        assertThat(iia.indexOf(4)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.2K bytes
    - Viewed (0)
Back to top