aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcases/org/apache/poi')
-rw-r--r--src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
index d0529220d2..7d7650de25 100644
--- a/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
+++ b/src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java
@@ -2903,6 +2903,21 @@ public final class TestBugs extends BaseTestBugzillaIssues {
public void test63819() throws IOException {
simpleTest("63819.xls");
}
+
+ /**
+ * Test that VALUE behaves properly as array function and its result is handled by aggregate function
+ */
+ @Test
+ public void testValueAsArrayFunction() throws IOException {
+ try (final Workbook wb = openSampleWorkbook("TestValueAsArrayFunction.xls")) {
+ wb.getCreationHelper().createFormulaEvaluator().evaluateAll();
+ Sheet sheet = wb.getSheetAt(0);
+ Row row = sheet.getRow(0);
+ Cell cell = row.getCell(0);
+ assertEquals(6.0, cell.getNumericCellValue(), 0.0);
+ }
+ }
+
// a simple test which rewrites the file once and evaluates its formulas
private void simpleTest(String fileName) throws IOException {
simpleTest(fileName, null);