From fc5ca16d357106c7d100e11b1d3e791527eaeb08 Mon Sep 17 00:00:00 2001 From: Avik Sengupta Date: Mon, 13 Oct 2003 16:46:30 +0000 Subject: [PATCH] testcase for concatenate, sync from branch PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353394 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/poi/hssf/model/TestFormulaParser.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java b/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java index a409e4b2a..ecce0635b 100644 --- a/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java +++ b/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java @@ -306,6 +306,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);