Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testConstantSqrt2PrecomputedBits (0.09 sec)

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

      public void testFloorPowerOfTwoZero() {
        assertThrows(
            IllegalArgumentException.class, () -> BigIntegerMath.floorPowerOfTwo(BigInteger.ZERO));
      }
    
      @GwtIncompatible // TODO
      public void testConstantSqrt2PrecomputedBits() {
        assertEquals(
            BigIntegerMath.sqrt(
                BigInteger.ZERO.setBit(2 * BigIntegerMath.SQRT2_PRECOMPUTE_THRESHOLD + 1), FLOOR),
            BigIntegerMath.SQRT2_PRECOMPUTED_BITS);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
Back to top