aboutsummaryrefslogtreecommitdiffstats
path: root/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java
diff options
context:
space:
mode:
authorJosh Micich <josh@apache.org>2008-05-26 18:25:02 +0000
committerJosh Micich <josh@apache.org>2008-05-26 18:25:02 +0000
commitd2fccf5b0c56be0c26f70f6c7c4a3d6b7523ddfd (patch)
tree7554567a23dee865b6c5ff86dc29f83cd16e0d64 /src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java
parent7c1e1f24785294d90c8dc76a1b033a07aeeb4d9d (diff)
downloadpoi-d2fccf5b0c56be0c26f70f6c7c4a3d6b7523ddfd.tar.gz
poi-d2fccf5b0c56be0c26f70f6c7c4a3d6b7523ddfd.zip
Small fix for FormulaParser. Need case-insentive match for IF function name
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@660263 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java')
-rw-r--r--src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java b/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java
index f2821140f3..29619501e0 100644
--- a/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java
+++ b/src/testcases/org/apache/poi/hssf/model/TestFormulaParser.java
@@ -644,8 +644,16 @@ public final class TestFormulaParser extends TestCase {
Class[] expClss;
- expClss = new Class[] { ReferencePtg.class, MissingArgPtg.class, ReferencePtg.class,
- FuncVarPtg.class, };
+ expClss = new Class[] {
+ ReferencePtg.class,
+ AttrPtg.class, // tAttrIf
+ MissingArgPtg.class,
+ AttrPtg.class, // tAttrSkip
+ ReferencePtg.class,
+ AttrPtg.class, // tAttrSkip
+ FuncVarPtg.class,
+ };
+
confirmTokenClasses("if(A1, ,C1)", expClss);
expClss = new Class[] { MissingArgPtg.class, AreaPtg.class, MissingArgPtg.class,
@@ -814,7 +822,7 @@ public final class TestFormulaParser extends TestCase {
fail("Expected exception was not thrown");
} catch (IllegalStateException e) {
// expected during successful test
- assertTrue(e.getMessage().startsWith("Too few arguments suppled to operation token"));
+ assertTrue(e.getMessage().startsWith("Too few arguments supplied to operation"));
}
}
/**