commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r1540513 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java
Date Sun, 10 Nov 2013 18:54:32 GMT
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



Mime
View raw message