Check better for more transitions

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

No files matched your search

+3
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)