Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for testCeilingPowerOfTwoNegative (0.13 sec)

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

          assertTrue(BigIntegerMath.isPowerOfTwo(result));
          assertThat(result).isAtMost(x);
          assertThat(result.add(result)).isGreaterThan(x);
        }
      }
    
      public void testCeilingPowerOfTwoNegative() {
        for (BigInteger x : NEGATIVE_BIGINTEGER_CANDIDATES) {
          assertThrows(IllegalArgumentException.class, () -> BigIntegerMath.ceilingPowerOfTwo(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)
  2. guava-tests/test/com/google/common/math/IntMathTest.java

          BigInteger expectedResult = BigIntegerMath.floorPowerOfTwo(BigInteger.valueOf(x));
          assertEquals(expectedResult.intValue(), IntMath.floorPowerOfTwo(x));
        }
      }
    
      public void testCeilingPowerOfTwoNegative() {
        for (int x : NEGATIVE_INTEGER_CANDIDATES) {
          assertThrows(IllegalArgumentException.class, () -> IntMath.ceilingPowerOfTwo(x));
        }
      }
    
      public void testFloorPowerOfTwoNegative() {
    Registered: Fri Dec 26 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 24.1K bytes
    - Viewed (0)
Back to top