mirror of https://github.com/apache/poi.git
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
e8b12e2e54
commit
df1df24e75
|
@ -2616,4 +2616,21 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
|
||||||
|
|
||||||
wb.close();
|
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.
Loading…
Reference in New Issue