From: Amol S. Deshmukh Date: Thu, 24 Aug 2006 16:41:12 +0000 (+0000) Subject: test case that checks to see if a case of MissingArgsPtg in the formula string is... X-Git-Tag: REL_3_0_ALPHA3~52 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3b4e272ac26480430c6af329387306f0e0d56d1f;p=poi.git test case that checks to see if a case of MissingArgsPtg in the formula string is handled correctly git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@434425 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java b/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java index 811d2d363e..9aebc0b2a8 100644 --- a/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java +++ b/src/testcases/org/apache/poi/hssf/usermodel/TestFormulas.java @@ -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) {