Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for testCeilingPowerOfTwo (1.17 sec)

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

    import org.jspecify.annotations.NullMarked;
    
    /**
     * Tests for BigIntegerMath.
     *
     * @author Louis Wasserman
     */
    @NullMarked
    @GwtCompatible
    public class BigIntegerMathTest extends TestCase {
      public void testCeilingPowerOfTwo() {
        for (BigInteger x : POSITIVE_BIGINTEGER_CANDIDATES) {
          BigInteger result = BigIntegerMath.ceilingPowerOfTwo(x);
          assertTrue(BigIntegerMath.isPowerOfTwo(result));
          assertThat(result).isAtLeast(x);
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Wed Nov 19 01:35:24 UTC 2025
    - 27.1K bytes
    - Viewed (0)
Back to top