Check better for more transitions

This commit is contained in:
Dave Halter
2018-06-26 22:53:02 +02:00
parent 91d864b23d
commit f66e47c540
2 changed files with 7 additions and 4 deletions

View File

@@ -285,3 +285,6 @@ def test_ambiguities():
with pytest.raises(ValueError, match='ambiguous'):
generate_grammar('''foo: bar | baz\nbar: 'x'\nbaz: "x"\n''', tokenize.PythonTokenTypes)
with pytest.raises(ValueError, match='ambiguous'):
generate_grammar('''foo: bar | 'x'\nbar: 'x'\n''', tokenize.PythonTokenTypes)