Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testGCDNegativePositiveThrows (0.28 sec)

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

        for (int a : POSITIVE_INTEGER_CANDIDATES) {
          assertEquals(a, IntMath.gcd(a, 0));
          assertEquals(a, IntMath.gcd(0, a));
        }
        assertEquals(0, IntMath.gcd(0, 0));
      }
    
      public void testGCDNegativePositiveThrows() {
        for (int a : NEGATIVE_INTEGER_CANDIDATES) {
          assertThrows(IllegalArgumentException.class, () -> IntMath.gcd(a, 3));
          assertThrows(IllegalArgumentException.class, () -> IntMath.gcd(3, a));
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/math/LongMathTest.java

          assertEquals(a, LongMath.gcd(a, 0));
          assertEquals(a, LongMath.gcd(0, a));
        }
        assertEquals(0, LongMath.gcd(0, 0));
      }
    
      @GwtIncompatible // TODO
      public void testGCDNegativePositiveThrows() {
        for (long a : NEGATIVE_LONG_CANDIDATES) {
          assertThrows(IllegalArgumentException.class, () -> LongMath.gcd(a, 3));
          assertThrows(IllegalArgumentException.class, () -> LongMath.gcd(3, a));
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 31.4K bytes
    - Viewed (0)
Back to top