]> source.dussan.org Git - poi.git/commitdiff
add failing unit test for bug 58648
authorJaven O'Neal <onealj@apache.org>
Wed, 25 Nov 2015 09:19:03 +0000 (09:19 +0000)
committerJaven O'Neal <onealj@apache.org>
Wed, 25 Nov 2015 09:19:03 +0000 (09:19 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1716338 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/ss/usermodel/BaseTestBugzillaIssues.java

index eba567d193fa6cc3f4c3ac534a01183c660490ba..2af5c388702ed6560430098fe9a2ae5b404a6cae 100644 (file)
@@ -1355,4 +1355,17 @@ public abstract class BaseTestBugzillaIssues {
         
         wb.close();
     }
+    
+    @Ignore
+    @Test
+    public void test58648() throws IOException {
+        Workbook wb = _testDataProvider.createWorkbook();
+        Cell cell = wb.createSheet().createRow(0).createCell(0);
+        cell.setCellFormula("((1 + 1) )");
+        // fails with
+        // org.apache.poi.ss.formula.FormulaParseException: Parse error near char ... ')'
+        // in specified formula '((1 + 1) )'. Expected cell ref or constant literal
+
+        wb.close();
+    }
 }