moved test into ParserErrorMessageTests

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@83 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
Andy Clement 2008-08-18 00:21:45 +00:00
parent f75701fbba
commit e28d4e8a11
2 changed files with 5 additions and 3 deletions

View File

@ -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
}
}

View File

@ -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))");
}