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:
Phil Steitz 2013-11-10 18:54:32 +00:00
parent 78504bde01
commit 0801455213
1 changed files with 3 additions and 3 deletions

View File

@ -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