aboutsummaryrefslogtreecommitdiffstats
path: root/poi/src/test
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-05-28 14:27:29 +0000
committerPJ Fanning <fanningpj@apache.org>2022-05-28 14:27:29 +0000
commit772c938f4cc7e0487ce1c63909313445b86a33b5 (patch)
tree86897f232391b495fb4bd802fde854109ae855c8 /poi/src/test
parent23622343ce55734f390b95134ac50ac81ffe74b3 (diff)
downloadpoi-772c938f4cc7e0487ce1c63909313445b86a33b5.tar.gz
poi-772c938f4cc7e0487ce1c63909313445b86a33b5.zip
add tests
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1901355 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi/src/test')
-rw-r--r--poi/src/test/java/org/apache/poi/ss/formula/functions/TestStdev.java2
-rw-r--r--poi/src/test/java/org/apache/poi/ss/formula/functions/TestVar.java2
2 files changed, 4 insertions, 0 deletions
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestStdev.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestStdev.java
index 18e618d2e6..a7fe2c795e 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestStdev.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestStdev.java
@@ -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);
}
}
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestVar.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestVar.java
index e22cea74aa..069733635a 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestVar.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestVar.java
@@ -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);
}
}