diff --git a/tests/test-grammar-integration.cpp b/tests/test-grammar-integration.cpp index 84a680c670..74bf41eb7e 100644 --- a/tests/test-grammar-integration.cpp +++ b/tests/test-grammar-integration.cpp @@ -802,6 +802,19 @@ static void test_quantifiers() { "yy" } ); + test_grammar( + "hang", + // Grammar + R"""( + root ::= (((((([^x]*){0,99}){0,99}){0,99}){0,99}){0,99}){0,99} + )""", + // Passing strings + { + }, + // Failing strings + { + } + ); } static void test_failure_missing_root() {