commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brentwor...@apache.org
Subject cvs commit: jakarta-commons/math/src/test/org/apache/commons/math TestUtils.java
Date Wed, 05 May 2004 19:55:14 GMT
brentworden    2004/05/05 12:55:14

  Modified:    math/src/test/org/apache/commons/math TestUtils.java
  Log:
  Replaced normal CDF routine with one based on the error function.
  
  Revision  Changes    Path
  1.13      +3 -2      jakarta-commons/math/src/test/org/apache/commons/math/TestUtils.java
  
  Index: TestUtils.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/math/src/test/org/apache/commons/math/TestUtils.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -r1.12 -r1.13
  --- TestUtils.java	2 Apr 2004 21:30:08 -0000	1.12
  +++ TestUtils.java	5 May 2004 19:55:14 -0000	1.13
  @@ -44,7 +44,8 @@
       public static void assertEquals(String msg, double expected, double actual, double
delta) {
       	// check for NaN
       	if(Double.isNaN(expected)){
  -    		Assert.assertTrue(msg, Double.isNaN(actual));
  +    		Assert.assertTrue("" + actual + " is not NaN.",
  +    		    Double.isNaN(actual));
       	} else {
       		Assert.assertEquals(msg, expected, actual, delta);
       	}
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message