commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r812147 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java
Date Mon, 07 Sep 2009 14:08:16 GMT
Author: sebb
Date: Mon Sep  7 14:08:16 2009
New Revision: 812147

URL: http://svn.apache.org/viewvc?rev=812147&view=rev
Log:
Clarify test failure messages

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java?rev=812147&r1=812146&r2=812147&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java
Mon Sep  7 14:08:16 2009
@@ -173,15 +173,15 @@
             int x = (int)data[i][0];
             double pdf = data[i][1];
             double actualPdf = dist.probability(x);
-            TestUtils.assertRelativelyEquals(pdf, actualPdf, 1.0e-9);
+            TestUtils.assertRelativelyEquals("Expected equals for <"+x+"> pdf",pdf,
actualPdf, 1.0e-9);
 
             double cdf = data[i][2];
             double actualCdf = dist.cumulativeProbability(x);
-            TestUtils.assertRelativelyEquals(cdf, actualCdf, 1.0e-9);
+            TestUtils.assertRelativelyEquals("Expected equals for <"+x+"> cdf",cdf,
actualCdf, 1.0e-9);
 
             double cdf1 = data[i][3];
             double actualCdf1 = dist.upperCumulativeProbability(x);
-            TestUtils.assertRelativelyEquals(cdf1, actualCdf1, 1.0e-9);
+            TestUtils.assertRelativelyEquals("Expected equals for <"+x+"> cdf1",cdf1,
actualCdf1, 1.0e-9);
         }
     }
 



Mime
View raw message