提交 7d677b23 编写于 作者: A Andy Clement

moved test into ParserErrorMessageTests

上级 bea94c23
......@@ -63,4 +63,9 @@ public class ParserErrorMessagesTests extends ExpressionTestCase {
parseAndCheckError("null is T('a')", SpelMessages.PARSE_PROBLEM, 10, "mismatched input ''a'' expecting ID"); // POOR
}
public void testExpressionLists02a() {
// either missing semi or rogue 5. RPAREN should at least be ')', and why doesn't it give the other possibles?
parseAndCheckError("( (3;4)5)", SpelMessages.PARSE_PROBLEM, 7, "mismatched input '5' expecting RPAREN"); // POOR
}
}
......@@ -391,9 +391,6 @@ public class ParsingTests extends TestCase {
parseCheck("( (3;4);5)", "((3;4);5)");
}
// TODO parser recovery for this next one: missing semi
// public void testExpressionLists02a() { parseCheck("( (3;4)5)","((3;4);5)");}
// // badly formed, missing a semi
public void testExpressionLists03() {
parseCheck("(3;(4;5))");
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册