Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for testLastIndexOf (0.12 sec)

  1. android/guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(
                Bytes.indexOf(
                    new byte[] {(byte) 4, (byte) 3, (byte) 2},
                    new byte[] {(byte) 2, (byte) 3, (byte) 4}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
        assertThat(Bytes.lastIndexOf(EMPTY, (byte) 1)).isEqualTo(-1);
        assertThat(Bytes.lastIndexOf(ARRAY1, (byte) 2)).isEqualTo(-1);
        assertThat(Bytes.lastIndexOf(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)
  2. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        assertThat(
                Chars.indexOf(
                    new char[] {(char) 4, (char) 3, (char) 2},
                    new char[] {(char) 2, (char) 3, (char) 4}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
        assertThat(Chars.lastIndexOf(EMPTY, (char) 1)).isEqualTo(-1);
        assertThat(Chars.lastIndexOf(ARRAY1, (char) 2)).isEqualTo(-1);
        assertThat(Chars.lastIndexOf(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)
  3. guava-tests/test/com/google/common/primitives/BytesTest.java

        assertThat(
                Bytes.indexOf(
                    new byte[] {(byte) 4, (byte) 3, (byte) 2},
                    new byte[] {(byte) 2, (byte) 3, (byte) 4}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
        assertThat(Bytes.lastIndexOf(EMPTY, (byte) 1)).isEqualTo(-1);
        assertThat(Bytes.lastIndexOf(ARRAY1, (byte) 2)).isEqualTo(-1);
        assertThat(Bytes.lastIndexOf(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)
  4. android/guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

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

              .isEqualTo(1);
        }
        assertThat(Doubles.indexOf(new double[] {5.0, NaN, NaN, 5.0}, new double[] {NaN, NaN}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
        assertThat(Doubles.lastIndexOf(EMPTY, (double) 1)).isEqualTo(-1);
        assertThat(Doubles.lastIndexOf(ARRAY1, (double) 2)).isEqualTo(-1);
        assertThat(Doubles.lastIndexOf(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)
  6. android/guava-tests/test/com/google/common/primitives/ImmutableIntArrayTest.java

        assertThat(ImmutableIntArray.of(13).indexOf(13)).isEqualTo(0);
        assertThat(ImmutableIntArray.of().indexOf(21)).isEqualTo(-1);
        assertThat(iia.subArray(1, 5).indexOf(1)).isEqualTo(0);
      }
    
      public void testLastIndexOf() {
        ImmutableIntArray iia = ImmutableIntArray.of(1, 1, 2, 3, 5, 8);
        assertThat(iia.lastIndexOf(1)).isEqualTo(1);
        assertThat(iia.lastIndexOf(8)).isEqualTo(5);
        assertThat(iia.lastIndexOf(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)
  7. guava-tests/test/com/google/common/primitives/ImmutableDoubleArrayTest.java

        assertThat(iia.indexOf(Double.MAX_VALUE)).isEqualTo(2);
        assertThat(iia.indexOf(Double.POSITIVE_INFINITY)).isEqualTo(3);
        assertThat(iia.indexOf(Double.NaN)).isEqualTo(4);
      }
    
      public void testLastIndexOf() {
        ImmutableDoubleArray iia = ImmutableDoubleArray.of(1, 1, 2, 3, 5, 8);
        assertThat(iia.lastIndexOf(1)).isEqualTo(1);
        assertThat(iia.lastIndexOf(8)).isEqualTo(5);
    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. guava-tests/test/com/google/common/primitives/BooleansTest.java

        assertThat(Booleans.indexOf(ARRAY_FALSE_TRUE, true)).isEqualTo(1);
        assertThat(Booleans.indexOf(new boolean[] {false, false, true}, true)).isEqualTo(2);
      }
    
      public void testLastIndexOf() {
        assertThat(Booleans.lastIndexOf(EMPTY, false)).isEqualTo(-1);
        assertThat(Booleans.lastIndexOf(ARRAY_FALSE, true)).isEqualTo(-1);
        assertThat(Booleans.lastIndexOf(ARRAY_FALSE_FALSE, true)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 24.8K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

              .isEqualTo(1);
        }
        assertThat(Floats.indexOf(new float[] {5f, NaN, NaN, 5f}, new float[] {NaN, NaN}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
        assertThat(Floats.lastIndexOf(EMPTY, (float) 1)).isEqualTo(-1);
        assertThat(Floats.lastIndexOf(ARRAY1, (float) 2)).isEqualTo(-1);
        assertThat(Floats.lastIndexOf(ARRAY234, (float) 1)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/primitives/IntsTest.java

            .isEqualTo(1);
        assertThat(
                Ints.indexOf(
                    new int[] {(int) 4, (int) 3, (int) 2}, new int[] {(int) 2, (int) 3, (int) 4}))
            .isEqualTo(-1);
      }
    
      public void testLastIndexOf() {
        assertThat(Ints.lastIndexOf(EMPTY, (int) 1)).isEqualTo(-1);
        assertThat(Ints.lastIndexOf(ARRAY1, (int) 2)).isEqualTo(-1);
        assertThat(Ints.lastIndexOf(ARRAY234, (int) 1)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.1K bytes
    - Viewed (0)
Back to top