You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by se...@apache.org on 2009/09/07 16:08:16 UTC

svn commit: r812147 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java

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);
         }
     }