commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r992735 - /commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java
Date Sun, 05 Sep 2010 08:48:26 GMT
Author: luc
Date: Sun Sep  5 08:48:26 2010
New Revision: 992735

URL: http://svn.apache.org/viewvc?rev=992735&view=rev
Log:
fixed missing annotations preventing test to run

Modified:
    commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java

Modified: commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java?rev=992735&r1=992734&r2=992735&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java
Sun Sep  5 08:48:26 2010
@@ -20,6 +20,7 @@ package org.apache.commons.math.dfp;
 import org.junit.After;
 import org.junit.Assert;
 import org.junit.Before;
+import org.junit.Test;
 
 public class DfpMathTest {
 
@@ -27,7 +28,6 @@ public class DfpMathTest {
     private Dfp pinf;
     private Dfp ninf;
     private Dfp nan;
-    private Dfp snan;
     private Dfp qnan;
 
     @Before
@@ -37,7 +37,6 @@ public class DfpMathTest {
         pinf = factory.newDfp("1").divide(factory.newDfp("0"));
         ninf = factory.newDfp("-1").divide(factory.newDfp("0"));
         nan = factory.newDfp("0").divide(factory.newDfp("0"));
-        snan = factory.newDfp((byte)1, Dfp.SNAN);
         qnan = factory.newDfp((byte)1, Dfp.QNAN);
         ninf.getField().clearIEEEFlags();
 
@@ -51,7 +50,6 @@ public class DfpMathTest {
         pinf = null;
         ninf = null;
         nan  = null;
-        snan = null;
         qnan = null;
     }
 
@@ -76,6 +74,7 @@ public class DfpMathTest {
         x.getField().clearIEEEFlags();
     }
 
+    @Test
     public void testPow()  
     {
         // Test special cases  exponent of zero
@@ -472,6 +471,7 @@ public class DfpMathTest {
              DfpField.FLAG_INEXACT, "pow #88");
     }
 
+    @Test
     public void testSin()
     {
         test(DfpMath.sin(pinf),



Mime
View raw message