diff --git a/tests/test-grammar-integration.cpp b/tests/test-grammar-integration.cpp index 2728d32ab4..22d2799dd1 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() {