Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 16 of 16 for testIndexOf (0.12 sec)

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

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

          assertWithMessage("" + value).that(Floats.contains(new float[] {5f, value}, value)).isTrue();
        }
        assertThat(Floats.contains(new float[] {5f, NaN}, NaN)).isFalse();
      }
    
      public void testIndexOf() {
        assertThat(Floats.indexOf(EMPTY, (float) 1)).isEqualTo(-1);
        assertThat(Floats.indexOf(ARRAY1, (float) 2)).isEqualTo(-1);
        assertThat(Floats.indexOf(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)
  3. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(Ints.contains(ARRAY234, (int) 2)).isTrue();
        assertThat(Ints.contains(ARRAY234, (int) 3)).isTrue();
        assertThat(Ints.contains(ARRAY234, (int) 4)).isTrue();
      }
    
      public void testIndexOf() {
        assertThat(Ints.indexOf(EMPTY, (int) 1)).isEqualTo(-1);
        assertThat(Ints.indexOf(ARRAY1, (int) 2)).isEqualTo(-1);
        assertThat(Ints.indexOf(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)
  4. 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)
  5. guava-tests/test/com/google/common/primitives/FloatsTest.java

          assertWithMessage("" + value).that(Floats.contains(new float[] {5f, value}, value)).isTrue();
        }
        assertThat(Floats.contains(new float[] {5f, NaN}, NaN)).isFalse();
      }
    
      public void testIndexOf() {
        assertThat(Floats.indexOf(EMPTY, (float) 1)).isEqualTo(-1);
        assertThat(Floats.indexOf(ARRAY1, (float) 2)).isEqualTo(-1);
        assertThat(Floats.indexOf(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)
  6. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(Longs.contains(ARRAY234, (long) 2)).isTrue();
        assertThat(Longs.contains(ARRAY234, (long) 3)).isTrue();
        assertThat(Longs.contains(ARRAY234, (long) 4)).isTrue();
      }
    
      public void testIndexOf() {
        assertThat(Longs.indexOf(EMPTY, (long) 1)).isEqualTo(-1);
        assertThat(Longs.indexOf(ARRAY1, (long) 2)).isEqualTo(-1);
        assertThat(Longs.indexOf(ARRAY234, (long) 1)).isEqualTo(-1);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 29.8K bytes
    - Viewed (0)
Back to top