commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1458478 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/events/EventFilterTest.java
Date Tue, 19 Mar 2013 19:48:03 GMT
Author: luc
Date: Tue Mar 19 19:48:03 2013
New Revision: 1458478

URL: http://svn.apache.org/r1458478
Log:
Removed development statement.

I'm really sorry for this...

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/events/EventFilterTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/events/EventFilterTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/events/EventFilterTest.java?rev=1458478&r1=1458477&r2=1458478&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/events/EventFilterTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/ode/events/EventFilterTest.java
Tue Mar 19 19:48:03 2013
@@ -16,9 +16,6 @@
  */
 package org.apache.commons.math3.ode.events;
 
-import java.io.IOException;
-import java.io.PrintStream;
-
 import org.apache.commons.math3.analysis.solvers.BracketingNthOrderBrentSolver;
 import org.apache.commons.math3.exception.DimensionMismatchException;
 import org.apache.commons.math3.exception.MaxCountExceededException;
@@ -119,23 +116,16 @@ public class EventFilterTest {
 
         // verify old events are preserved, even if randomly accessed
         RandomGenerator rng = new Well19937a(0xb0e7401265af8cd3l);
-        try {
-            PrintStream out = new PrintStream("/home/luc/x.dat");
         for (int i = 0; i < 5000; i++) {
             double t = t0 + (t1 - t0) * rng.nextDouble();
             double g = eventFilter.g(t, new double[] { FastMath.sin(t), FastMath.cos(t) });
             int turn = (int) FastMath.floor((t - refSwitch) / (2 * FastMath.PI));
-            out.println(t + " " + g);
             if (turn % 2 == 0) {
                 Assert.assertEquals( signEven * FastMath.sin(t), g, 1.0e-10);
             } else {
                 Assert.assertEquals(-signEven * FastMath.sin(t), g, 1.0e-10);
             }
         }
-        out.close();
-        } catch (IOException ioe) {
-            Assert.fail(ioe.getLocalizedMessage());
-        }
 
     }
 



Mime
View raw message