poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject cvs commit: jakarta-poi/src/testcases/org/apache/poi/hssf/model TestFormulaParser.java
Date Mon, 13 Oct 2003 16:46:30 GMT
avik        2003/10/13 09:46:30

  Modified:    src/testcases/org/apache/poi/hssf/model
                        TestFormulaParser.java
  Log:
  testcase for concatenate, sync from branch
  
  Revision  Changes    Path
  1.10      +9 -0      jakarta-poi/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java
  
  Index: TestFormulaParser.java
  ===================================================================
  RCS file: /home/cvs/jakarta-poi/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- TestFormulaParser.java	23 Sep 2003 18:47:12 -0000	1.9
  +++ TestFormulaParser.java	13 Oct 2003 16:46:30 -0000	1.10
  @@ -306,6 +306,15 @@
           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);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: poi-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: poi-dev-help@jakarta.apache.org


Mime
View raw message