Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 7 of 7 for isPositiveInfinity (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. android/guava-tests/test/com/google/common/math/DoubleUtilsTest.java

          assertThat(DoubleUtils.ensureNonNegative(-positiveValue)).isEqualTo(0.0);
        }
        assertThat(DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY)).isPositiveInfinity();
        assertThat(DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY)).isEqualTo(0.0);
        assertThrows(IllegalArgumentException.class, () -> DoubleUtils.ensureNonNegative(Double.NaN));
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

          } else if (values.hasAnyPositiveInfinity()) {
            assertWithMessage("mean of %s", values).that(mean).isPositiveInfinity();
            assertWithMessage("mean by addAll(Stats) of %s", values)
                .that(meanByAddAllStats)
                .isPositiveInfinity();
          } else if (values.hasAnyNegativeInfinity()) {
            assertWithMessage("mean of %s", values).that(mean).isNegativeInfinity();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 37.1K bytes
    - Click Count (0)
  3. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

          } else if (values.hasAnyPositiveInfinity()) {
            assertWithMessage("mean of %s", values).that(mean).isPositiveInfinity();
            assertWithMessage("mean by addAll(Stats) of %s", values)
                .that(meanByAddAllStats)
                .isPositiveInfinity();
          } else if (values.hasAnyNegativeInfinity()) {
            assertWithMessage("mean of %s", values).that(mean).isNegativeInfinity();
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 37.1K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/math/DoubleMathTest.java

        }
      }
    
      public void testFactorialTooHigh() {
        assertThat(DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 1)).isPositiveInfinity();
        assertThat(DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 20)).isPositiveInfinity();
      }
    
      public void testFactorialNegative() {
        for (int n : NEGATIVE_INTEGER_CANDIDATES) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 03 16:20:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  5. guava-tests/test/com/google/common/math/DoubleMathTest.java

        }
      }
    
      public void testFactorialTooHigh() {
        assertThat(DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 1)).isPositiveInfinity();
        assertThat(DoubleMath.factorial(DoubleMath.MAX_FACTORIAL + 20)).isPositiveInfinity();
      }
    
      public void testFactorialNegative() {
        for (int n : NEGATIVE_INTEGER_CANDIDATES) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Feb 03 16:20:39 GMT 2026
    - 27.5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/math/QuantilesTest.java

        // interpolating between 5.0 and POSITIVE_INFINITY
        assertThat(Quantiles.scale(10).index(9).compute(ONE_TO_FIVE_AND_POSITIVE_INFINITY))
            .isPositiveInfinity();
      }
    
      public void testScale_indexes_varargs_compute_doubleCollection_negativeInfinity() {
        assertThat(
                Quantiles.scale(10)
                    .indexes(0, 1, 2, 8, 9, 10)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 29.9K bytes
    - Click Count (0)
  7. guava-tests/test/com/google/common/math/QuantilesTest.java

        // interpolating between 5.0 and POSITIVE_INFINITY
        assertThat(Quantiles.scale(10).index(9).compute(ONE_TO_FIVE_AND_POSITIVE_INFINITY))
            .isPositiveInfinity();
      }
    
      public void testScale_indexes_varargs_compute_doubleCollection_negativeInfinity() {
        assertThat(
                Quantiles.scale(10)
                    .indexes(0, 1, 2, 8, 9, 10)
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Mar 03 05:21:26 GMT 2026
    - 29.9K bytes
    - Click Count (0)
Back to Top