test for parsing strings, submitted by Werner Froidevaux
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352654 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e3581a0396
commit
7077f9e2e4
@ -54,6 +54,16 @@ public class TestFormulaParser extends TestCase {
|
|||||||
assertTrue("two tokens expected, got "+ptgs.length,ptgs.length == 2);
|
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) {
|
public static void main(String [] args) {
|
||||||
System.out.println("Testing org.apache.poi.hssf.record.formula.FormulaParser");
|
System.out.println("Testing org.apache.poi.hssf.record.formula.FormulaParser");
|
||||||
junit.textui.TestRunner.run(TestFormulaParser.class);
|
junit.textui.TestRunner.run(TestFormulaParser.class);
|
||||||
|
Loading…
Reference in New Issue
Block a user