Add additional unit test for empty tokens{} block in grammar

This commit is contained in:
Sam Harwell 2013-03-26 23:56:19 -05:00
parent b4413e8656
commit 05f4b76fab
1 changed files with 11 additions and 0 deletions

View File

@ -217,4 +217,15 @@ public class TestToolSyntaxErrors extends BaseTest {
};
super.testErrors(pair, true);
}
@Test public void testEmptyTokensBlock() {
String[] pair = new String[] {
"grammar A;\n" +
"tokens {}\n" +
"a : 'x' ;\n",
""
};
super.testErrors(pair, true);
}
}