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 2015/09/11 20:48:19 UTC

[math] Removed old print statements from tests.

Repository: commons-math
Updated Branches:
  refs/heads/MATH_3_X 18310ed96 -> 1cdaba9d5


Removed old print statements from tests.

Project: http://git-wip-us.apache.org/repos/asf/commons-math/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-math/commit/1cdaba9d
Tree: http://git-wip-us.apache.org/repos/asf/commons-math/tree/1cdaba9d
Diff: http://git-wip-us.apache.org/repos/asf/commons-math/diff/1cdaba9d

Branch: refs/heads/MATH_3_X
Commit: 1cdaba9d5a5709d1180e0847a307e9ce02d3a34b
Parents: 18310ed
Author: Luc Maisonobe <lu...@apache.org>
Authored: Fri Sep 11 20:22:57 2015 +0200
Committer: Luc Maisonobe <lu...@apache.org>
Committed: Fri Sep 11 20:33:02 2015 +0200

----------------------------------------------------------------------
 .../commons/math3/complex/ComplexTest.java      | 40 --------------------
 .../stat/regression/SimpleRegressionTest.java   |  5 ---
 2 files changed, 45 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-math/blob/1cdaba9d/src/test/java/org/apache/commons/math3/complex/ComplexTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java
index 9996e68..7cf7962 100644
--- a/src/test/java/org/apache/commons/math3/complex/ComplexTest.java
+++ b/src/test/java/org/apache/commons/math3/complex/ComplexTest.java
@@ -796,49 +796,9 @@ public class ComplexTest {
     }
 
     @Test
-    public void testJava() {// TODO more debug
-        System.out.println(">>testJava()");
-        // FastMathTest#testExpSpecialCases() checks the following:
-        // Assert.assertEquals("exp of -infinity should be 0.0", 0.0, FastMath.exp(Double.NEGATIVE_INFINITY), Precision.EPSILON);
-        // Let's check how well Math works:
-        System.out.println("Math.exp="+Math.exp(Double.NEGATIVE_INFINITY));
-        String props[] = {
-        "java.version", //    Java Runtime Environment version
-        "java.vendor", // Java Runtime Environment vendor
-        "java.vm.specification.version", //   Java Virtual Machine specification version
-        "java.vm.specification.vendor", //    Java Virtual Machine specification vendor
-        "java.vm.specification.name", //  Java Virtual Machine specification name
-        "java.vm.version", // Java Virtual Machine implementation version
-        "java.vm.vendor", //  Java Virtual Machine implementation vendor
-        "java.vm.name", //    Java Virtual Machine implementation name
-        "java.specification.version", //  Java Runtime Environment specification version
-        "java.specification.vendor", //   Java Runtime Environment specification vendor
-        "java.specification.name", // Java Runtime Environment specification name
-        "java.class.version", //  Java class format version number
-        };
-        for(String t : props) {
-            System.out.println(t + "=" + System.getProperty(t));
-        }    
-        System.out.println("<<testJava()");
-    }
-
-    @Test
     public void testExpInf4() {
-        // TODO: temp debug start
-        System.out.println(">>testExpInf4()");
-        double inf = negInfOne.getReal();
-        System.out.println("inf="+inf);
-        int intVal = (int) -inf;
-        System.out.println("intval="+intVal);
-        System.out.println("neginf<0=" + (inf < 0.0));
-        // TODO: temp debug end
-        System.out.println("expReal="+FastMath.exp(negInfOne.getReal())); // TODO temp debug
-        System.out.println("cosImag="+FastMath.cos(negInfOne.getImaginary())); // TODO temp debug
-        System.out.println("sinImag="+FastMath.sin(negInfOne.getImaginary())); // TODO temp debug
         final Complex exp = negInfOne.exp();
-        System.out.println("result="+exp); // TODO temp debug
         TestUtils.assertSame(Complex.ZERO, exp);
-        System.out.println("<<testExpInf4()"); // TODO debug
     }
 
     @Test

http://git-wip-us.apache.org/repos/asf/commons-math/blob/1cdaba9d/src/test/java/org/apache/commons/math3/stat/regression/SimpleRegressionTest.java
----------------------------------------------------------------------
diff --git a/src/test/java/org/apache/commons/math3/stat/regression/SimpleRegressionTest.java b/src/test/java/org/apache/commons/math3/stat/regression/SimpleRegressionTest.java
index 544e141..063e06b 100644
--- a/src/test/java/org/apache/commons/math3/stat/regression/SimpleRegressionTest.java
+++ b/src/test/java/org/apache/commons/math3/stat/regression/SimpleRegressionTest.java
@@ -551,14 +551,9 @@ public final class SimpleRegressionTest {
     @Test
     public void testPerfect2() {
         SimpleRegression regression = new SimpleRegression();
-        System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing
         regression.addData(0, 0);
-        System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing
         regression.addData(1, 1);
-        System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing
         regression.addData(2, 2);
-        System.out.println("getXSumSquares()=" + regression.getXSumSquares()); // TODO temp check to see why Jenkins H10 is failing
-        System.out.println("getMeanSquareError()=" + regression.getMeanSquareError()); // TODO temp check to see why Jenkins H10/H11 is failing
         Assert.assertEquals(0.0, regression.getSlopeStdErr(), 0.0);
         Assert.assertEquals(0.0, regression.getSignificance(), Double.MIN_VALUE);
         Assert.assertEquals(1, regression.getRSquare(), Double.MIN_VALUE);