commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r1240822 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/stat/descriptive/UnivariateStatisticAbstractTest.java
Date Sun, 05 Feb 2012 21:13:25 GMT
Author: tn
Date: Sun Feb  5 21:13:24 2012
New Revision: 1240822

URL: http://svn.apache.org/viewvc?rev=1240822&view=rev
Log:
Changed equality test for failing test. The previous change was simply wrong.
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=1240822&r1=1240821&r2=1240822&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 21:13:24 2012
@@ -210,9 +210,9 @@ public abstract class UnivariateStatisti
         // Compare result of weighted statistic computation with direct computation
         // on array of repeated values
         WeightedEvaluation weightedStatistic = (WeightedEvaluation) statistic;
-        TestUtils.assertEquals(statistic.evaluate(repeatedValues),
+        TestUtils.assertRelativelyEquals(statistic.evaluate(repeatedValues),
                 weightedStatistic.evaluate(values, weights, 0, values.length),
-                10E-14);
+                10E-12);
 
         // Check consistency of weighted evaluation methods
         Assert.assertEquals(weightedStatistic.evaluate(values, weights, 0, values.length),



Mime
View raw message