| Index: tools/lexer_generator/automata_test.py
|
| diff --git a/tools/lexer_generator/automata_test.py b/tools/lexer_generator/automata_test.py
|
| index c5bbb0bd26c2fc7a0fc75ac2ee448e2063dcf7f9..57fc8a00f68151d4a6c5b10118eb2b04faa4ce62 100644
|
| --- a/tools/lexer_generator/automata_test.py
|
| +++ b/tools/lexer_generator/automata_test.py
|
| @@ -55,6 +55,11 @@ class AutomataTestCase(unittest.TestCase):
|
| ("a.+b", ["aab", "abb", "acb"], ["aaac", "ab", ""]),
|
| (".|.", ["a", "b"], ["aa", ""]),
|
| ("//.", ["//a"], ["aa", ""]),
|
| + ("[ab]{2}", ["aa", "ab", "ba", "bb"], ["", "a", "b", "aaa", "bbb"]),
|
| + ("[ab]{2,3}", ["aa", "ab", "ba", "bb", "aab", "baa", "bbb"],
|
| + ["", "a", "b", "aaaa", "bbba"]),
|
| + ("[ab]{2,4}", ["aa", "ab", "ba", "bb", "aab", "baa", "bbb", "abab"],
|
| + ["", "a", "b", "aaaba", "bbbaa"])
|
| ]
|
|
|
| def test_matches(self):
|
|
|