diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/output/test_grammar | 1 | ||||
-rw-r--r-- | Lib/test/test_grammar.py | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/output/test_grammar b/Lib/test/output/test_grammar index 8be2a1f..5033276 100644 --- a/Lib/test/output/test_grammar +++ b/Lib/test/output/test_grammar @@ -7,6 +7,7 @@ test_grammar 1.1.2.2 Long integers 1.1.2.3 Floating point 1.1.3 String literals +1.1.4 Ellipsis literal 1.2 Grammar single_input file_input diff --git a/Lib/test/test_grammar.py b/Lib/test/test_grammar.py index 6e9b204..eb93283 100644 --- a/Lib/test/test_grammar.py +++ b/Lib/test/test_grammar.py @@ -125,6 +125,12 @@ the \'lazy\' dog.\n\ '; verify(x == y) +print '1.1.4 Ellipsis literal' + +x = ... +verify(x == Ellipsis) + + print '1.2 Grammar' print 'single_input' # NEWLINE | simple_stmt | compound_stmt NEWLINE |