From 59eb9a9bad0ab01ea6e5ff1cf1888b869985616a Mon Sep 17 00:00:00 2001 From: Luc Maisonobe Date: Tue, 19 Mar 2013 19:48:03 +0000 Subject: [PATCH] Removed development statement. I'm really sorry for this... git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1458478 13f79535-47bb-0310-9956-ffa450edef68 --- .../commons/math3/ode/events/EventFilterTest.java | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/test/java/org/apache/commons/math3/ode/events/EventFilterTest.java b/src/test/java/org/apache/commons/math3/ode/events/EventFilterTest.java index bb85245cf..155c46adb 100644 --- a/src/test/java/org/apache/commons/math3/ode/events/EventFilterTest.java +++ b/src/test/java/org/apache/commons/math3/ode/events/EventFilterTest.java @@ -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()); - } }