]> source.dussan.org Git - poi.git/commitdiff
[bug-49202] add PERCENTRANK.INC function
authorPJ Fanning <fanningpj@apache.org>
Sat, 7 Aug 2021 15:02:49 +0000 (15:02 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 7 Aug 2021 15:02:49 +0000 (15:02 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1892082 13f79535-47bb-0310-9956-ffa450edef68

poi/src/test/java/org/apache/poi/ss/formula/atp/TestPercentRankIncFunction.java
poi/src/test/java/org/apache/poi/ss/formula/functions/TestPercentRank.java

index 5846ccb8c84dafb4ffbf182bfbedfc601d75b3e8..b73352d53cb6d65e2e44f00342cdb3b756325bcd 100644 (file)
@@ -48,6 +48,8 @@ public class TestPercentRankIncFunction {
             assertDouble(fe, cell, "PERCENTRANK.INC(A2:A11,8,2)", 0.66);
             assertDouble(fe, cell, "PERCENTRANK.INC(A2:A11,8,4)", 0.6666);
             assertDouble(fe, cell, "PERCENTRANK.INC(A2:A11,5)", 0.583);
+            assertDouble(fe, cell, "PERCENTRANK(A2:A11,1)", 0);
+            assertDouble(fe, cell, "PERCENTRANK(A2:A11,13)", 1);
         }
     }
 
index 96f489431d89700d7f9fe8ea985e16cfbdca5749..4d68cc0fe54b59edab60d9dd8a964284c484e91e 100644 (file)
@@ -47,6 +47,8 @@ public class TestPercentRank {
             assertDouble(fe, cell, "PERCENTRANK(A2:A11,8,2)", 0.66);
             assertDouble(fe, cell, "PERCENTRANK(A2:A11,8,4)", 0.6666);
             assertDouble(fe, cell, "PERCENTRANK(A2:A11,5)", 0.583);
+            assertDouble(fe, cell, "PERCENTRANK(A2:A11,1)", 0);
+            assertDouble(fe, cell, "PERCENTRANK(A2:A11,13)", 1);
         }
     }