disabled unit tests are now passing for bug 48703

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765544 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-10-19 07:37:47 +00:00
parent ec7607e398
commit e1734cd542
2 changed files with 2 additions and 5 deletions

View File

@ -1354,9 +1354,7 @@ public final class TestXSSFBugs extends BaseTestBugzillaIssues {
/**
* Sum across multiple workbooks
* eg =SUM($Sheet1.C1:$Sheet4.C1)
* DISABLED As we can't currently evaluate these
*/
@Ignore
@Test
public void bug48703() throws IOException {
XSSFWorkbook wb = XSSFTestDataSamples.openSampleWorkbook("48703.xlsx");

View File

@ -2373,9 +2373,8 @@ public final class TestBugs extends BaseTestBugzillaIssues {
/**
* Sum across multiple workbooks
* eg =SUM($Sheet2.A1:$Sheet3.A1)
* DISABLED - We currently get the formula wrong, and mis-evaluate
*/
@Ignore
@Test
public void test48703() throws Exception {
HSSFWorkbook wb = openSample("48703.xls");
assertEquals(3, wb.getNumberOfSheets());
@ -2385,7 +2384,7 @@ public final class TestBugs extends BaseTestBugzillaIssues {
Row r = sheet.getRow(0);
Cell c = r.getCell(0);
assertEquals("SUM(Sheet2!A1:Sheet3!A1)", c.getCellFormula());
assertEquals("SUM(Sheet2:Sheet3!A1)", c.getCellFormula());
assertEquals(4.0, c.getNumericCellValue(), 0);
// Check the evaluated result