no Jira improve test case
@@ -33,10 +33,8 @@ public class MiscTest {
assertEquals(8, Misc.nextHigherPowerOfX(7, 8));
assertEquals(8, Misc.nextHigherPowerOfX(8, 8));
assertEquals(16, Misc.nextHigherPowerOfX(9, 8));
- System.out.println(Misc.nextHigherPowerOfX(10 * 1024 * 1024 * 8 / 3 / 50, 4096)); // == 561152
- System.out.println( Misc.nextHigherPowerOfX(Math.max(512, 561152/1000), 32));
-
-
+ assertEquals(561152, Misc.nextHigherPowerOfX(10 * 1024 * 1024 * 8 / 3 / 50, 4096));
+ assertEquals(576, Misc.nextHigherPowerOfX(Math.max(512, 561152/1000), 32));
}
}
