]> source.dussan.org Git - poi.git/commitdiff
Someone said Concatenate doesnt work, so here's a testcase to prove that it works
authorAvik Sengupta <avik@apache.org>
Mon, 13 Oct 2003 16:42:17 +0000 (16:42 +0000)
committerAvik Sengupta <avik@apache.org>
Mon, 13 Oct 2003 16:42:17 +0000 (16:42 +0000)
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353392 13f79535-47bb-0310-9956-ffa450edef68

src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java

index 7e84607396f1943693a31dfb4b496140849e976b..b45f48f375b5c80246a98ee9dd3b03e33b0de6c7 100644 (file)
@@ -305,6 +305,15 @@ public class TestFormulaParser extends TestCase {
         assertTrue("second ptg is string",ptg[1] instanceof StringPtg);
         
     }
+    
+    public void testConcatenate(){
+         FormulaParser fp = new FormulaParser("CONCATENATE(\"first\",\"second\")",null);
+         fp.parse();
+         Ptg[] ptg = fp.getRPNPtg();
+        assertTrue("first ptg is string",ptg[0] instanceof StringPtg);
+        assertTrue("second ptg is string",ptg[1] instanceof StringPtg);
+    }
+    
      public static void main(String [] args) {
         System.out.println("Testing org.apache.poi.hssf.record.formula.FormulaParser");
         junit.textui.TestRunner.run(TestFormulaParser.class);