diff options
author | David Beazley <dave@dabeaz.com> | 2008-11-04 15:45:34 +0000 |
---|---|---|
committer | David Beazley <dave@dabeaz.com> | 2008-11-04 15:45:34 +0000 |
commit | c66982f8e7dc7de7bbb73c1e40699fd22aef5eac (patch) | |
tree | 40648cfefdb76a4ba9914378c6ff5c177cc3ecf5 /test/testyacc.py | |
parent | 3d91085e98cd5d2ddd3822793ab33bbad8287f5c (diff) | |
download | ply-c66982f8e7dc7de7bbb73c1e40699fd22aef5eac.tar.gz |
Fixed a bug with negative stack indices
Diffstat (limited to 'test/testyacc.py')
-rw-r--r-- | test/testyacc.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/testyacc.py b/test/testyacc.py index 4793986..08fb007 100644 --- a/test/testyacc.py +++ b/test/testyacc.py @@ -160,6 +160,15 @@ class YaccErrorWarningTests(unittest.TestCase): "yacc_missing1.py:24: Symbol 'location' used, but not defined as a token or a rule.\n" )) + def test_yacc_nested(self): + run_import("yacc_nested") + result = sys.stdout.getvalue() + self.assert_(check_expected(result, + "A\n" + "A\n" + "A\n", + )) + def test_yacc_nodoc(self): run_import("yacc_nodoc") result = sys.stderr.getvalue() |