Clarify test failure messages

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812147 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2009-09-07 14:08:16 +00:00
parent 8961047173
commit 53a9ee3979
1 changed files with 3 additions and 3 deletions

View File

@ -173,15 +173,15 @@ public class HypergeometricDistributionTest extends IntegerDistributionAbstractT
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);
}
}