commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1003890 - in /commons/proper/math/branches/MATH_2_X: ./ src/test/java/org/apache/commons/math/dfp/DfpTest.java
Date Sat, 02 Oct 2010 21:14:22 GMT
Author: luc
Date: Sat Oct  2 21:14:22 2010
New Revision: 1003890

URL: http://svn.apache.org/viewvc?rev=1003890&view=rev
Log:
backported r1003350 from trunk to branch 2.X
Unnecessary to cast byte into byte

Modified:
    commons/proper/math/branches/MATH_2_X/   (props changed)
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpTest.java

Propchange: commons/proper/math/branches/MATH_2_X/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Sat Oct  2 21:14:22 2010
@@ -1 +1 @@
-/commons/proper/math/trunk:1003346,1003348-1003349
+/commons/proper/math/trunk:1003346,1003348-1003350

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpTest.java?rev=1003890&r1=1003889&r2=1003890&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpTest.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpTest.java
Sat Oct  2 21:14:22 2010
@@ -1171,8 +1171,8 @@ public class DfpTest {
         Assert.assertEquals("toString #1", "Infinity", pinf.toString());
         Assert.assertEquals("toString #2", "-Infinity", ninf.toString());
         Assert.assertEquals("toString #3", "NaN", nan.toString());
-        Assert.assertEquals("toString #4", "NaN", field.newDfp((byte) 1, (byte) Dfp.QNAN).toString());
-        Assert.assertEquals("toString #5", "NaN", field.newDfp((byte) 1, (byte) Dfp.SNAN).toString());
+        Assert.assertEquals("toString #4", "NaN", field.newDfp((byte) 1, Dfp.QNAN).toString());
+        Assert.assertEquals("toString #5", "NaN", field.newDfp((byte) 1, Dfp.SNAN).toString());
         Assert.assertEquals("toString #6", "1.2300000000000000e100", field.newDfp("1.23e100").toString());
         Assert.assertEquals("toString #7", "-1.2300000000000000e100", field.newDfp("-1.23e100").toString());
         Assert.assertEquals("toString #8", "12345678.1234", field.newDfp("12345678.1234").toString());
@@ -1495,11 +1495,11 @@ public class DfpTest {
              pinf,
              0, "Sqrt #8");
 
-        test(field.newDfp((byte) 1, (byte) Dfp.QNAN).sqrt(),
+        test(field.newDfp((byte) 1, Dfp.QNAN).sqrt(),
              nan,
              0, "Sqrt #9");
 
-        test(field.newDfp((byte) 1, (byte) Dfp.SNAN).sqrt(),
+        test(field.newDfp((byte) 1, Dfp.SNAN).sqrt(),
              nan,
              DfpField.FLAG_INVALID, "Sqrt #9");
     }



Mime
View raw message