Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for testConstrainToRange (0.08 sec)

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

        assertThat(min(GREATEST)).isEqualTo(GREATEST);
        assertThat(min((char) 8, (char) 6, (char) 7, (char) 5, (char) 3, (char) 0, (char) 9))
            .isEqualTo((char) 0);
      }
    
      public void testConstrainToRange() {
        assertThat(Chars.constrainToRange((char) 1, (char) 0, (char) 5)).isEqualTo((char) 1);
        assertThat(Chars.constrainToRange((char) 1, (char) 1, (char) 5)).isEqualTo((char) 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)
  2. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(min(0.0, -0.0)).isEqualTo(-0.0);
        assertThat(min(NUMBERS)).isEqualTo(LEAST);
        assertThat(Double.isNaN(min(VALUES))).isTrue();
      }
    
      public void testConstrainToRange() {
        assertThat(Doubles.constrainToRange((double) 1, (double) 0, (double) 5)).isEqualTo((double) 1);
        assertThat(Doubles.constrainToRange((double) 1, (double) 1, (double) 5)).isEqualTo((double) 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)
  3. android/guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(min(-0f, 0f)).isEqualTo(-0f);
        assertThat(min(0f, -0f)).isEqualTo(-0f);
        assertThat(min(NUMBERS)).isEqualTo(LEAST);
        assertThat(Float.isNaN(min(VALUES))).isTrue();
      }
    
      public void testConstrainToRange() {
        assertThat(Floats.constrainToRange((float) 1, (float) 0, (float) 5)).isEqualTo((float) 1);
        assertThat(Floats.constrainToRange((float) 1, (float) 1, (float) 5)).isEqualTo((float) 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)
  4. android/guava-tests/test/com/google/common/primitives/IntsTest.java

        assertThat(min(GREATEST)).isEqualTo(GREATEST);
        assertThat(min((int) 8, (int) 6, (int) 7, (int) 5, (int) 3, (int) 0, (int) 9))
            .isEqualTo((int) 0);
      }
    
      public void testConstrainToRange() {
        assertThat(Ints.constrainToRange((int) 1, (int) 0, (int) 5)).isEqualTo((int) 1);
        assertThat(Ints.constrainToRange((int) 1, (int) 1, (int) 5)).isEqualTo((int) 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)
  5. guava-tests/test/com/google/common/primitives/DoublesTest.java

        assertThat(min(0.0, -0.0)).isEqualTo(-0.0);
        assertThat(min(NUMBERS)).isEqualTo(LEAST);
        assertThat(Double.isNaN(min(VALUES))).isTrue();
      }
    
      public void testConstrainToRange() {
        assertThat(Doubles.constrainToRange((double) 1, (double) 0, (double) 5)).isEqualTo((double) 1);
        assertThat(Doubles.constrainToRange((double) 1, (double) 1, (double) 5)).isEqualTo((double) 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. guava-tests/test/com/google/common/primitives/FloatsTest.java

        assertThat(min(-0f, 0f)).isEqualTo(-0f);
        assertThat(min(0f, -0f)).isEqualTo(-0f);
        assertThat(min(NUMBERS)).isEqualTo(LEAST);
        assertThat(Float.isNaN(min(VALUES))).isTrue();
      }
    
      public void testConstrainToRange() {
        assertThat(Floats.constrainToRange((float) 1, (float) 0, (float) 5)).isEqualTo((float) 1);
        assertThat(Floats.constrainToRange((float) 1, (float) 1, (float) 5)).isEqualTo((float) 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)
  7. guava-tests/test/com/google/common/primitives/LongsTest.java

        assertThat(min(MAX_VALUE)).isEqualTo(MAX_VALUE);
        assertThat(min((long) 8, (long) 6, (long) 7, (long) 5, (long) 3, (long) 0, (long) 9))
            .isEqualTo((long) 0);
      }
    
      public void testConstrainToRange() {
        assertThat(Longs.constrainToRange((long) 1, (long) 0, (long) 5)).isEqualTo((long) 1);
        assertThat(Longs.constrainToRange((long) 1, (long) 1, (long) 5)).isEqualTo((long) 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