Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGCD (0.17 sec)

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

          try {
            IntMath.mod(x, 0);
            fail("Expected ArithmeticException");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      public void testGCD() {
        for (int a : POSITIVE_INTEGER_CANDIDATES) {
          for (int b : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(IntMath.gcd(a, b)));
          }
        }
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/IntMathTest.java

          try {
            IntMath.mod(x, 0);
            fail("Expected ArithmeticException");
          } catch (ArithmeticException expected) {
          }
        }
      }
    
      public void testGCD() {
        for (int a : POSITIVE_INTEGER_CANDIDATES) {
          for (int b : POSITIVE_INTEGER_CANDIDATES) {
            assertEquals(valueOf(a).gcd(valueOf(b)), valueOf(IntMath.gcd(a, b)));
          }
        }
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Feb 07 17:50:39 GMT 2024
    - 24.5K bytes
    - Viewed (0)
Back to top