Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testRoundInfiniteToIntAlwaysFails (0.09 sec)

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

          assertThrows(ArithmeticException.class, () -> DoubleMath.roundToInt(Double.NaN, mode));
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode)
      public void testRoundInfiniteToIntAlwaysFails() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertThrows(
              ArithmeticException.class, () -> DoubleMath.roundToInt(Double.POSITIVE_INFINITY, mode));
          assertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 14:15:36 UTC 2025
    - 27.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/DoubleMathTest.java

          assertThrows(ArithmeticException.class, () -> DoubleMath.roundToInt(Double.NaN, mode));
        }
      }
    
      @GwtIncompatible // DoubleMath.roundToInt(double, RoundingMode)
      public void testRoundInfiniteToIntAlwaysFails() {
        for (RoundingMode mode : ALL_ROUNDING_MODES) {
          assertThrows(
              ArithmeticException.class, () -> DoubleMath.roundToInt(Double.POSITIVE_INFINITY, mode));
          assertThrows(
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Thu Oct 30 14:15:36 UTC 2025
    - 27.3K bytes
    - Viewed (0)
Back to top