]> source.dussan.org Git - poi.git/commitdiff
test case that checks to see if a case of MissingArgsPtg in the formula string is...
authorAmol S. Deshmukh <amol@apache.org>
Thu, 24 Aug 2006 16:41:12 +0000 (16:41 +0000)
committerAmol S. Deshmukh <amol@apache.org>
Thu, 24 Aug 2006 16:41:12 +0000 (16:41 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@434425 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java

index 811d2d363e28f67575c039dce368f9417b047813..9aebc0b2a8b6d0b6f15e4ad6c20e1fd6c9820a19 100644 (file)
@@ -1118,6 +1118,13 @@ extends TestCase {
                wb.write(new FileOutputStream(outF));
                System.out.println("Open "+outF.getAbsolutePath()+" in Excel");
        }
+       
+       /* MissingArgPtg */
+       public void testMissingArgPtg() throws Exception {
+               HSSFWorkbook wb = new HSSFWorkbook();
+               HSSFCell cell = wb.createSheet("Sheet1").createRow(4).createCell((short) 0);
+               cell.setCellFormula("IF(A1=\"A\",1,)");
+       }
     
     
     public static void main(String [] args) {