]> source.dussan.org Git - poi.git/commitdiff
disabled unit tests are now passing for bug 48703
authorJaven O'Neal <onealj@apache.org>
Wed, 19 Oct 2016 07:37:47 +0000 (07:37 +0000)
committerJaven O'Neal <onealj@apache.org>
Wed, 19 Oct 2016 07:37:47 +0000 (07:37 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765544 13f79535-47bb-0310-9956-ffa450edef68

src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFBugs.java
src/testcases/org/apache/poi/hssf/usermodel/TestBugs.java

index 66b26d377c591a20f2f0d4714370fa823db52ef8..d6d26943b1dcf648786846b00457bd6aed688271 100644 (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");
index 65042127e819b57cc0e4b8c5863debe8cde9973b..454c1da683f9309548a5b49623b0d9ac0e47f26a 100644 (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