View | Details | Raw Unified | Return to bug 9418
Collapse All | Expand All

(-)TestFormulaParser_1.1_8.java (+9 lines)
Lines 54-59 Link Here
54
        assertTrue("two tokens expected, got "+ptgs.length,ptgs.length == 2);
54
        assertTrue("two tokens expected, got "+ptgs.length,ptgs.length == 2);
55
    }
55
    }
56
    
56
    
57
    public void testFormulaWithString() {
58
        Ptg[] ptgs;
59
        FormulaParser fp;
60
        fp = new FormulaParser("\"hello\" & \"world\" ;");
61
        fp.parse();
62
        ptgs = fp.getRPNPtg();
63
        assertTrue("three token expected, got " + ptgs.length, ptgs.length == 3);
64
    }
65
57
     public static void main(String [] args) {
66
     public static void main(String [] args) {
58
        System.out.println("Testing org.apache.poi.hssf.record.formula.FormulaParser");
67
        System.out.println("Testing org.apache.poi.hssf.record.formula.FormulaParser");
59
        junit.textui.TestRunner.run(TestFormulaParser.class);
68
        junit.textui.TestRunner.run(TestFormulaParser.class);

Return to bug 9418