You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by tn...@apache.org on 2012/02/05 20:52:49 UTC
svn commit: r1240790 -
/commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/UnivariateStatisticAbstractTest.java
Author: tn
Date: Sun Feb 5 19:52:49 2012
New Revision: 1240790
URL: http://svn.apache.org/viewvc?rev=1240790&view=rev
Log:
Relaxed too strict equality test.
JIRA: MATH-588
Modified:
commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/UnivariateStatisticAbstractTest.java
Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/UnivariateStatisticAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/UnivariateStatisticAbstractTest.java?rev=1240790&r1=1240789&r2=1240790&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/UnivariateStatisticAbstractTest.java (original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/UnivariateStatisticAbstractTest.java Sun Feb 5 19:52:49 2012
@@ -210,7 +210,7 @@ public abstract class UnivariateStatisti
// Compare result of weighted statistic computation with direct computation
// on array of repeated values
WeightedEvaluation weightedStatistic = (WeightedEvaluation) statistic;
- TestUtils.assertRelativelyEquals(statistic.evaluate(repeatedValues),
+ TestUtils.assertEquals(statistic.evaluate(repeatedValues),
weightedStatistic.evaluate(values, weights, 0, values.length),
10E-14);