You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ps...@apache.org on 2013/11/10 19:54:32 UTC

svn commit: r1540513 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java

Author: psteitz
Date: Sun Nov 10 18:54:32 2013
New Revision: 1540513

URL: http://svn.apache.org/r1540513
Log:
Replaced deprecated method.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java?rev=1540513&r1=1540512&r2=1540513&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java Sun Nov 10 18:54:32 2013
@@ -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