Return-Path: X-Original-To: apmail-commons-commits-archive@minotaur.apache.org Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 12E7FFF17 for ; Tue, 19 Mar 2013 19:48:27 +0000 (UTC) Received: (qmail 34116 invoked by uid 500); 19 Mar 2013 19:48:26 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 33987 invoked by uid 500); 19 Mar 2013 19:48:26 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 33977 invoked by uid 99); 19 Mar 2013 19:48:26 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 19:48:26 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2013 19:48:24 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 835B1238889B; Tue, 19 Mar 2013 19:48:03 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@commons.apache.org From: luc@apache.org X-Mailer: svnmailer-1.0.8-patched Message-Id: <20130319194803.835B1238889B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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()); - } }