diff options
Diffstat (limited to 'tests/test_unit.py')
-rw-r--r-- | tests/test_unit.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test_unit.py b/tests/test_unit.py index b120835..fe4253d 100644 --- a/tests/test_unit.py +++ b/tests/test_unit.py @@ -2964,6 +2964,13 @@ class Test02_WithoutPackrat(ppt.TestParseResultsAsserts, TestCase): result, compare_list, msg="issue with ParseResults.insert()" ) + def testParseResultsAddingSuppressedTokenWithResultsName(self): + parser = "aaa" + (pp.NoMatch() | pp.Suppress("-"))("B") + try: + dd = parser.parse_string("aaa -").as_dict() + except RecursionError: + self.fail("fail getting named result when empty") + def testIgnoreString(self): """test ParserElement.ignore() passed a string arg""" |