moved test into ParserErrorMessageTests
This commit is contained in:
parent
bea94c2371
commit
7d677b23d3
|
|
@ -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))");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue