Add unit test which verifies that bug 53105 is actually fixed now

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1701133 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2015-09-03 20:46:14 +00:00
parent 4b8c20a7ca
commit f7e0bdea37
2 changed files with 17 additions and 0 deletions

View File

@ -2616,4 +2616,21 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
wb.close();
}
@Test
public void test53105() throws IOException {
Workbook wb = XSSFTestDataSamples.openSampleWorkbook("53105.xlsx");
assertNotNull(wb);
// Act
// evaluate SUM('Skye Lookup Input'!A4:XFD4), cells in range each contain "1"
FormulaEvaluator evaluator = wb.getCreationHelper().createFormulaEvaluator();
double numericValue = evaluator.evaluate(wb.getSheetAt(0).getRow(1).getCell(0)).getNumberValue();
// Assert
assertEquals(16384.0, numericValue, 0.0);
wb.close();
}
}

Binary file not shown.