Add additional unit test for empty tokens{} block in grammar
This commit is contained in:
parent
b4413e8656
commit
05f4b76fab
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue