blob: 6e6fe9187326d5b8d42cbd5a1894aae8c0a7fd1a [file] [log] [blame]
Guido van Rossum6209b971992-11-27 22:54:49 +00001test_grammar
21. Parser
31.1 Tokens
41.1.1 Backslashes
51.1.2 Numeric literals
61.1.2.1 Plain integers
71.1.2.2 Long integers
81.1.2.3 Floating point
91.2 Grammar
10single_input
11file_input
12expr_input
13eval_input
14funcdef
15simple_stmt
16expr_stmt
171
18(1, 2, 3)
19print_stmt
201 2 3
211 2 3
221 1 1
23del_stmt
24pass_stmt
25flow_stmt
26break_stmt
27continue_stmt
28return_stmt
29raise_stmt
30import_stmt
31[1]
32[2]
33[3]
34[4]
35[5]
36[6]
37global_stmt
38if_stmt
39while_stmt
40for_stmt
41[1]
42[2]
43[3]
44try_stmt
45suite
46test
47comparison
48binary mask ops
49shift ops
50additive ops
51multiplicative ops
52unary ops
53selectors
54atoms
55classdef
56test_opcodes
572. Opcodes
58XXX Not yet fully implemented
592.1 try inside for loop
60test_operations
613. Operations
62XXX Not yet implemented
63test_builtin
644. Built-in functions
65test_b1
66abs
67apply
68chr
69cmp
70coerce
71dir
72divmod
73eval
74exec
75execfile
76float
77getattr
78hex
79int
80len
81long
82max
83min
84test_b2
85oct
86open
87ord
88pow
89range
90input and raw_input
91testing
92testing
93reload
94repr
95setattr
96str
97type
98test_exceptions
995. Built-in exceptions
100AttributeError
101EOFError
102IOError
103ImportError
104IndexError
105KeyError
106KeyboardInterrupt
107(not testable in a script)
108MemoryError
109(not safe to test)
110NameError
111OverflowError
112RuntimeError
113(not used any more?)
114SyntaxError
115SystemError
116(hard to reproduce)
117SystemExit
118TypeError
119ValueError
120ZeroDivisionError
121test_types
1226. Built-in types
1236.1 Truth value testing
1246.2 Boolean operations
1256.3 Comparisons
1266.4 Numeric types (mostly conversions)
1276.5 Sequence types
1286.5.1 Strings
1296.5.2 Tuples
1306.5.3 Lists
1316.5.3a Additional list operations
1326.6 Mappings == Dictionaries
133Passed all tests.