commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1604626 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/rank/PercentileTest.java
Date Sun, 22 Jun 2014 18:03:57 GMT
Author: luc
Date: Sun Jun 22 18:03:57 2014
New Revision: 1604626

URL: http://svn.apache.org/r1604626
Log:
Fixed forgotten test update.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/rank/PercentileTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/rank/PercentileTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/rank/PercentileTest.java?rev=1604626&r1=1604625&r2=1604626&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/rank/PercentileTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math3/stat/descriptive/rank/PercentileTest.java
Sun Jun 22 18:03:57 2014
@@ -660,17 +660,14 @@ public class PercentileTest extends Univ
             Assert.assertEquals("Type:"+t,0d, t.index(pMin, N),0d);
             Assert.assertEquals("Type:"+t,N, t.index(pMax, N),0.5d);
             pMin=pMin==0d?pMin+0.01:pMin;
-            testAssertMappedValues(testArray, new Object[][] { { t, min }}
-                ,pMin, 0.01);
-
-            testAssertMappedValues(testArray, new Object[][] { { t, max }}
-            ,pMax*100, tolerance);
+            testAssertMappedValues(testArray, new Object[][] { { t, min }}, pMin, 0.01);
+            testAssertMappedValues(testArray, new Object[][] { { t, max }}, pMax * 100, tolerance);
         }
     }
 
     @Test
     public void testAllEstimationTechniquesOnly() {
-        Assert.assertEquals("Commons Math",Percentile.EstimationType.LEGACY.getName());
+        Assert.assertEquals("Legacy Apache Commons Math",Percentile.EstimationType.LEGACY.getName());
         Object[][] map =
                 new Object[][] { { Percentile.EstimationType.LEGACY, 20.82 }, { Percentile.EstimationType.R_1,
19.8 },
                         { Percentile.EstimationType.R_2, 19.8 }, { Percentile.EstimationType.R_3,
19.8 }, { Percentile.EstimationType.R_4, 19.310 },
@@ -699,7 +696,7 @@ public class PercentileTest extends Univ
     @Test
     public void testAllEstimationTechniquesOnlyForAllPivotingStrategies() {
 
-        Assert.assertEquals("Commons Math",Percentile.EstimationType.LEGACY.getName());
+        Assert.assertEquals("Legacy Apache Commons Math",Percentile.EstimationType.LEGACY.getName());
 
         for (Percentile.PivotingStrategy strategy : Percentile.PivotingStrategy.values())
{
             pivotingStrategy = strategy;



Mime
View raw message