summaryrefslogtreecommitdiffstats
path: root/poi
diff options
context:
space:
mode:
authorPJ Fanning <fanningpj@apache.org>2022-02-25 12:56:06 +0000
committerPJ Fanning <fanningpj@apache.org>2022-02-25 12:56:06 +0000
commit114eca28a86aa0aa16f56fb4a43b2d7337628517 (patch)
tree63791ec24bfa3ff52de199fba4251bb7329d4805 /poi
parent18d868173dec5845c1056a06e12ffd25ae597275 (diff)
downloadpoi-114eca28a86aa0aa16f56fb4a43b2d7337628517.tar.gz
poi-114eca28a86aa0aa16f56fb4a43b2d7337628517.zip
[bug-65915] add test for 'OR' function
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898416 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'poi')
-rw-r--r--poi/src/test/java/org/apache/poi/ss/formula/functions/TestOrFunction.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestOrFunction.java b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestOrFunction.java
index 2fe6a045c1..6a972e3719 100644
--- a/poi/src/test/java/org/apache/poi/ss/formula/functions/TestOrFunction.java
+++ b/poi/src/test/java/org/apache/poi/ss/formula/functions/TestOrFunction.java
@@ -76,6 +76,18 @@ final class TestOrFunction {
}
}
+ @Test
+ void testBug65915() throws IOException {
+ //https://bz.apache.org/bugzilla/show_bug.cgi?id=65915
+ try (HSSFWorkbook wb = new HSSFWorkbook()) {
+ HSSFFormulaEvaluator fe = new HSSFFormulaEvaluator(wb);
+ HSSFSheet sheet = wb.createSheet();
+ HSSFRow row = sheet.createRow(0);
+ HSSFCell cell = row.createCell(0);
+ assertDouble(fe, cell, "INDEX({1},1,IF(OR(FALSE,FALSE),1,1))", 1.0);
+ }
+ }
+
private HSSFWorkbook initWorkbook1() {
HSSFWorkbook wb = new HSSFWorkbook();
HSSFSheet sheet = wb.createSheet();