Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for testDivByZeroAlwaysFails (0.19 sec)

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

        for (int q : NONZERO_INTEGER_CANDIDATES) {
          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertEquals(0, IntMath.divide(0, q, mode));
          }
        }
      }
    
      public void testDivByZeroAlwaysFails() {
        for (int p : ALL_INTEGER_CANDIDATES) {
          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertThrows(ArithmeticException.class, () -> IntMath.divide(p, 0, mode));
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/math/IntMathTest.java

        for (int q : NONZERO_INTEGER_CANDIDATES) {
          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertEquals(0, IntMath.divide(0, q, mode));
          }
        }
      }
    
      public void testDivByZeroAlwaysFails() {
        for (int p : ALL_INTEGER_CANDIDATES) {
          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertThrows(ArithmeticException.class, () -> IntMath.divide(p, 0, mode));
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  3. guava-tests/test/com/google/common/math/LongMathTest.java

          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertEquals(0L, LongMath.divide(0L, q, mode));
          }
        }
      }
    
      @GwtIncompatible // TODO
      public void testDivByZeroAlwaysFails() {
        for (long p : ALL_LONG_CANDIDATES) {
          for (RoundingMode mode : ALL_ROUNDING_MODES) {
            assertThrows(ArithmeticException.class, () -> LongMath.divide(p, 0L, mode));
          }
        }
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 15:00:32 UTC 2024
    - 30.6K bytes
    - Viewed (0)
Back to top