]> source.dussan.org Git - poi.git/commitdiff
add tests
authorPJ Fanning <fanningpj@apache.org>
Sat, 28 May 2022 14:27:29 +0000 (14:27 +0000)
committerPJ Fanning <fanningpj@apache.org>
Sat, 28 May 2022 14:27:29 +0000 (14:27 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901355 13f79535-47bb-0310-9956-ffa450edef68

poi/src/test/java/org/apache/poi/ss/formula/functions/TestStdev.java
poi/src/test/java/org/apache/poi/ss/formula/functions/TestVar.java

index 18e618d2e634323fe58f7687f83263342849873c..a7fe2c795e577305bf33e642ad163252632fb887 100644 (file)
@@ -73,6 +73,8 @@ public class TestStdev {
             HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(12);
             assertDouble(fe, cell, "STDEVA(A2:A7)", 4.546060565661952, 0.00000000001);
             assertDouble(fe, cell, "STDEV(A2:A7)", 3.559026084010437, 0.00000000001);
+            assertDouble(fe, cell, "STDEVPA(A2:A7)", 4.149966532662911, 0.00000000001);
+            assertDouble(fe, cell, "STDEVP(A2:A7)", 3.082207001484488, 0.00000000001);
         }
     }
 
index e22cea74aa367517de6cfa42bb7ba97091267ec1..069733635ac76b3035ae17239fc372c56a9ae8eb 100644 (file)
@@ -72,6 +72,8 @@ public class TestVar {
             HSSFCell cell = wb.getSheetAt(0).getRow(0).createCell(12);
             assertDouble(fe, cell, "VARA(A2:A7)", 20.666666666666668, 0.00000000001);
             assertDouble(fe, cell, "VAR(A2:A7)", 12.666666666666666, 0.00000000001);
+            assertDouble(fe, cell, "VARPA(A2:A7)", 17.222222222222225, 0.00000000001);
+            assertDouble(fe, cell, "VARP(A2:A7)", 9.5, 0.00000000001);
         }
     }