- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for testIsPrimeThrowsOnNegative (0.18 sec)
-
android/guava-tests/test/com/google/common/math/LongMathTest.java
long q = BigInteger.probablePrime(bits, rand).longValue(); assertFalse(LongMath.isPrime(p * q)); } } } @GwtIncompatible // isPrime is GWT-incompatible public void testIsPrimeThrowsOnNegative() { try { LongMath.isPrime(-1); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 04 20:15:57 UTC 2024 - 32.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
long q = BigInteger.probablePrime(bits, rand).longValue(); assertFalse(LongMath.isPrime(p * q)); } } } @GwtIncompatible // isPrime is GWT-incompatible public void testIsPrimeThrowsOnNegative() { try { LongMath.isPrime(-1); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Mar 04 20:15:57 UTC 2024 - 32.5K bytes - Viewed (0)