From 08014552131b5e55f28513f24dbaed7172b7e228 Mon Sep 17 00:00:00 2001 From: Phil Steitz Date: Sun, 10 Nov 2013 18:54:32 +0000 Subject: [PATCH] Replaced deprecated method. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1540513 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/commons/math3/util/ArithmeticUtilsTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java b/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java index 36992394a..0b10e91f8 100644 --- a/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java +++ b/src/test/java/org/apache/commons/math3/util/ArithmeticUtilsTest.java @@ -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