fixed missing annotations preventing test to run

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@992734 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2010-09-05 08:47:56 +00:00
parent 85d35b0ff6
commit cca4fb2733
1 changed files with 3 additions and 3 deletions

View File

@ -20,6 +20,7 @@ package org.apache.commons.math.dfp;
import org.junit.After; import org.junit.After;
import org.junit.Assert; import org.junit.Assert;
import org.junit.Before; import org.junit.Before;
import org.junit.Test;
public class DfpMathTest { public class DfpMathTest {
@ -27,7 +28,6 @@ public class DfpMathTest {
private Dfp pinf; private Dfp pinf;
private Dfp ninf; private Dfp ninf;
private Dfp nan; private Dfp nan;
private Dfp snan;
private Dfp qnan; private Dfp qnan;
@Before @Before
@ -37,7 +37,6 @@ public class DfpMathTest {
pinf = factory.newDfp("1").divide(factory.newDfp("0")); pinf = factory.newDfp("1").divide(factory.newDfp("0"));
ninf = factory.newDfp("-1").divide(factory.newDfp("0")); ninf = factory.newDfp("-1").divide(factory.newDfp("0"));
nan = factory.newDfp("0").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); qnan = factory.newDfp((byte)1, Dfp.QNAN);
ninf.getField().clearIEEEFlags(); ninf.getField().clearIEEEFlags();
@ -51,7 +50,6 @@ public class DfpMathTest {
pinf = null; pinf = null;
ninf = null; ninf = null;
nan = null; nan = null;
snan = null;
qnan = null; qnan = null;
} }
@ -76,6 +74,7 @@ public class DfpMathTest {
x.getField().clearIEEEFlags(); x.getField().clearIEEEFlags();
} }
@Test
public void testPow() public void testPow()
{ {
// Test special cases exponent of zero // Test special cases exponent of zero
@ -472,6 +471,7 @@ public class DfpMathTest {
DfpField.FLAG_INEXACT, "pow #88"); DfpField.FLAG_INEXACT, "pow #88");
} }
@Test
public void testSin() public void testSin()
{ {
test(DfpMath.sin(pinf), test(DfpMath.sin(pinf),