Add regression test for #370

This commit is contained in:
Sam Harwell 2014-01-15 14:31:41 -06:00
parent a6b1929d37
commit 83ad25ea1d
1 changed files with 2 additions and 0 deletions

View File

@ -76,6 +76,7 @@ public class TestXPath extends BaseTest {
"//expr/!primary", // anything but primary under any expr node
"//!*", // nothing anywhere
"/!*", // nothing at root
"//expr//ID", // any ID under any expression (tests antlr/antlr4#370)
};
String expected[] = {
"[func, func]",
@ -97,6 +98,7 @@ public class TestXPath extends BaseTest {
"[expr, expr, expr, expr, expr, expr]",
"[]",
"[]",
"[y, x]",
};
for (int i=0; i<xpath.length; i++) {