You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2010/09/05 10:47:56 UTC
svn commit: r992734 -
/commons/proper/math/trunk/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java
Author: luc
Date: Sun Sep 5 08:47:56 2010
New Revision: 992734
URL: http://svn.apache.org/viewvc?rev=992734&view=rev
Log:
fixed missing annotations preventing test to run
Modified:
commons/proper/math/trunk/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java?rev=992734&r1=992733&r2=992734&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/dfp/DfpMathTest.java Sun Sep 5 08:47:56 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),