--- TestFormulaParser_1.1_8.java Mon May 27 01:34:06 2002 +++ TestFormulaParser_1.1_8.java Mon May 27 01:25:04 2002 @@ -54,6 +54,15 @@ assertTrue("two tokens expected, got "+ptgs.length,ptgs.length == 2); } + public void testFormulaWithString() { + Ptg[] ptgs; + FormulaParser fp; + fp = new FormulaParser("\"hello\" & \"world\" ;"); + fp.parse(); + ptgs = fp.getRPNPtg(); + assertTrue("three token expected, got " + ptgs.length, ptgs.length == 3); + } + public static void main(String [] args) { System.out.println("Testing org.apache.poi.hssf.record.formula.FormulaParser"); junit.textui.TestRunner.run(TestFormulaParser.class);