Replaced deprecated method.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540513 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
78504bde01
commit
0801455213
|
@ -395,10 +395,10 @@ public class ArithmeticUtilsTest {
|
|||
// expected behavior
|
||||
}
|
||||
|
||||
Assert.assertEquals(1801088541, ArithmeticUtils.pow(21, 7l));
|
||||
Assert.assertEquals(1, ArithmeticUtils.pow(21, 0l));
|
||||
Assert.assertEquals(1801088541, ArithmeticUtils.pow(21, 7));
|
||||
Assert.assertEquals(1, ArithmeticUtils.pow(21, 0));
|
||||
try {
|
||||
ArithmeticUtils.pow(21, -7l);
|
||||
ArithmeticUtils.pow(21, -7);
|
||||
Assert.fail("Expecting MathIllegalArgumentException");
|
||||
} catch (MathIllegalArgumentException e) {
|
||||
// expected behavior
|
||||
|
|
Loading…
Reference in New Issue