From 53a9ee3979ff84349a9fe789aebe3ad2e7eb4d99 Mon Sep 17 00:00:00 2001 From: Sebastian Bazley Date: Mon, 7 Sep 2009 14:08:16 +0000 Subject: [PATCH] Clarify test failure messages git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@812147 13f79535-47bb-0310-9956-ffa450edef68 --- .../math/distribution/HypergeometricDistributionTest.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java b/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java index 24b2f8765..4b638d457 100644 --- a/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java +++ b/src/test/java/org/apache/commons/math/distribution/HypergeometricDistributionTest.java @@ -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); } }