Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 1 | test_grammar |
2 | 1. Parser | ||||
3 | 1.1 Tokens | ||||
4 | 1.1.1 Backslashes | ||||
5 | 1.1.2 Numeric literals | ||||
6 | 1.1.2.1 Plain integers | ||||
7 | 1.1.2.2 Long integers | ||||
8 | 1.1.2.3 Floating point | ||||
Guido van Rossum | b31c7f7 | 1993-11-11 10:31:23 +0000 | [diff] [blame] | 9 | 1.1.3 String literals |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 10 | 1.2 Grammar |
11 | single_input | ||||
12 | file_input | ||||
13 | expr_input | ||||
14 | eval_input | ||||
15 | funcdef | ||||
16 | simple_stmt | ||||
17 | expr_stmt | ||||
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 18 | print_stmt |
19 | 1 2 3 | ||||
20 | 1 2 3 | ||||
21 | 1 1 1 | ||||
22 | del_stmt | ||||
23 | pass_stmt | ||||
24 | flow_stmt | ||||
25 | break_stmt | ||||
26 | continue_stmt | ||||
27 | return_stmt | ||||
28 | raise_stmt | ||||
29 | import_stmt | ||||
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 30 | global_stmt |
Guido van Rossum | b3b09c9 | 1993-10-22 14:24:22 +0000 | [diff] [blame] | 31 | exec_stmt |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 32 | if_stmt |
33 | while_stmt | ||||
34 | for_stmt | ||||
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 35 | try_stmt |
36 | suite | ||||
37 | test | ||||
38 | comparison | ||||
39 | binary mask ops | ||||
40 | shift ops | ||||
41 | additive ops | ||||
42 | multiplicative ops | ||||
43 | unary ops | ||||
44 | selectors | ||||
45 | atoms | ||||
46 | classdef | ||||
47 | test_opcodes | ||||
48 | 2. Opcodes | ||||
49 | XXX Not yet fully implemented | ||||
50 | 2.1 try inside for loop | ||||
Guido van Rossum | 42e1936 | 1995-02-13 14:39:19 +0000 | [diff] [blame] | 51 | 2.2 raise class exceptions |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 52 | test_operations |
53 | 3. Operations | ||||
54 | XXX Not yet implemented | ||||
55 | test_builtin | ||||
56 | 4. Built-in functions | ||||
57 | test_b1 | ||||
Guido van Rossum | eecf035 | 1994-12-30 17:17:46 +0000 | [diff] [blame] | 58 | __import__ |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 59 | abs |
60 | apply | ||||
Guido van Rossum | e23b62f | 1994-11-10 22:25:26 +0000 | [diff] [blame] | 61 | callable |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 62 | chr |
63 | cmp | ||||
64 | coerce | ||||
Guido van Rossum | e23b62f | 1994-11-10 22:25:26 +0000 | [diff] [blame] | 65 | compile |
66 | delattr | ||||
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 67 | dir |
68 | divmod | ||||
69 | eval | ||||
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 70 | execfile |
Guido van Rossum | e65cce5 | 1993-11-08 15:05:21 +0000 | [diff] [blame] | 71 | filter |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 72 | float |
73 | getattr | ||||
Guido van Rossum | e23b62f | 1994-11-10 22:25:26 +0000 | [diff] [blame] | 74 | hasattr |
75 | hash | ||||
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 76 | hex |
Guido van Rossum | e23b62f | 1994-11-10 22:25:26 +0000 | [diff] [blame] | 77 | id |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 78 | int |
79 | len | ||||
80 | long | ||||
Guido van Rossum | e65cce5 | 1993-11-08 15:05:21 +0000 | [diff] [blame] | 81 | map |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 82 | max |
83 | min | ||||
84 | test_b2 | ||||
85 | oct | ||||
86 | open | ||||
87 | ord | ||||
88 | pow | ||||
89 | range | ||||
90 | input and raw_input | ||||
91 | testing | ||||
92 | testing | ||||
Guido van Rossum | e65cce5 | 1993-11-08 15:05:21 +0000 | [diff] [blame] | 93 | reduce |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 94 | reload |
95 | repr | ||||
Guido van Rossum | e7113b6 | 1993-03-29 11:30:50 +0000 | [diff] [blame] | 96 | round |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 97 | setattr |
98 | str | ||||
Guido van Rossum | e23b62f | 1994-11-10 22:25:26 +0000 | [diff] [blame] | 99 | tuple |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 100 | type |
Guido van Rossum | e23b62f | 1994-11-10 22:25:26 +0000 | [diff] [blame] | 101 | vars |
102 | xrange | ||||
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 103 | test_exceptions |
104 | 5. Built-in exceptions | ||||
105 | AttributeError | ||||
106 | EOFError | ||||
107 | IOError | ||||
108 | ImportError | ||||
109 | IndexError | ||||
110 | KeyError | ||||
111 | KeyboardInterrupt | ||||
112 | (not testable in a script) | ||||
113 | MemoryError | ||||
114 | (not safe to test) | ||||
115 | NameError | ||||
116 | OverflowError | ||||
117 | RuntimeError | ||||
118 | (not used any more?) | ||||
119 | SyntaxError | ||||
120 | SystemError | ||||
121 | (hard to reproduce) | ||||
122 | SystemExit | ||||
123 | TypeError | ||||
124 | ValueError | ||||
125 | ZeroDivisionError | ||||
126 | test_types | ||||
127 | 6. Built-in types | ||||
128 | 6.1 Truth value testing | ||||
129 | 6.2 Boolean operations | ||||
130 | 6.3 Comparisons | ||||
131 | 6.4 Numeric types (mostly conversions) | ||||
Guido van Rossum | 80530ce | 1993-01-21 15:36:40 +0000 | [diff] [blame] | 132 | 6.4.1 32-bit integers |
133 | 6.4.2 Long integers | ||||
134 | 6.4.3 Floating point numbers | ||||
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 135 | 6.5 Sequence types |
136 | 6.5.1 Strings | ||||
137 | 6.5.2 Tuples | ||||
138 | 6.5.3 Lists | ||||
139 | 6.5.3a Additional list operations | ||||
140 | 6.6 Mappings == Dictionaries | ||||
Guido van Rossum | fcce630 | 1996-08-08 18:26:25 +0000 | [diff] [blame] | 141 | test_math |
142 | math module, testing with eps 1e-05 | ||||
143 | constants | ||||
144 | acos | ||||
145 | asin | ||||
146 | atan | ||||
147 | atan2 | ||||
148 | ceil | ||||
149 | cos | ||||
150 | cosh | ||||
151 | exp | ||||
152 | fabs | ||||
153 | floor | ||||
154 | fmod | ||||
155 | frexp | ||||
156 | hypot | ||||
157 | ldexp | ||||
158 | log | ||||
159 | log10 | ||||
160 | modf | ||||
161 | pow | ||||
162 | sin | ||||
163 | sinh | ||||
164 | sqrt | ||||
165 | tan | ||||
166 | tanh | ||||
Barry Warsaw | 5bebca2 | 1996-12-06 23:30:33 +0000 | [diff] [blame] | 167 | test_time |
Guido van Rossum | 6c832eb | 1996-12-09 21:37:33 +0000 | [diff] [blame] | 168 | test_array |
Barry Warsaw | 4985283 | 1996-12-09 21:49:55 +0000 | [diff] [blame] | 169 | test_strop |
Barry Warsaw | 3ab26b9 | 1996-12-09 22:34:15 +0000 | [diff] [blame] | 170 | test_md5 |
171 | MD5 test suite: | ||||
172 | MD5 ("") = d41d8cd98f00b204e9800998ecf8427e | ||||
173 | MD5 ("a") = 0cc175b9c0f1b6a831c399e269772661 | ||||
174 | MD5 ("abc") = 900150983cd24fb0d6963f7d28e17f72 | ||||
175 | MD5 ("message digest") = f96b697d7cb7938d525a2f31aaf161d0 | ||||
176 | MD5 ("abcdefghijklmnopqrstuvwxyz") = c3fcd3d76192e4007dfb496cca67e13b | ||||
177 | MD5 ("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789") = d174ab98d277d9f5a5611c2c9f419d9f | ||||
178 | MD5 ("12345678901234567890123456789012345678901234567890123456789012345678901234567890") = 57edf4a22be3c955ac49da2e2107b67a | ||||
Roger E. Masse | b710357 | 1996-12-09 22:58:42 +0000 | [diff] [blame] | 179 | test_cmath |
Roger E. Masse | b6b85dd | 1996-12-09 23:13:07 +0000 | [diff] [blame] | 180 | test_crypt |
181 | Test encryption: abeTm2pJKypwA | ||||
Roger E. Masse | 16f9fd2 | 1996-12-10 00:06:24 +0000 | [diff] [blame] | 182 | test_dbm |
Barry Warsaw | 0f150e4 | 1996-12-10 16:27:16 +0000 | [diff] [blame^] | 183 | test_new |
Guido van Rossum | 6209b97 | 1992-11-27 22:54:49 +0000 | [diff] [blame] | 184 | Passed all tests. |