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:
parent
4b8c20a7ca
commit
f7e0bdea37
@ -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();
|
||||
}
|
||||
}
|
||||
|
BIN
test-data/spreadsheet/53105.xlsx
Normal file
BIN
test-data/spreadsheet/53105.xlsx
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user