Tim Peters | c2fe618 | 2001-10-30 23:20:46 +0000 | [diff] [blame] | 1 | from test_support import vereq |
2 | |||||
3 | import time | ||||
4 | |||||
5 | t = time.gmtime() | ||||
6 | astuple = tuple(t) | ||||
7 | vereq(len(t), len(astuple)) | ||||
8 | vereq(t, astuple) | ||||
9 | |||||
10 | # Check that slicing works the same way; at one point, slicing t[i:j] with | ||||
11 | # 0 < i < j could produce NULLs in the result. | ||||
12 | for i in range(-len(t), len(t)): | ||||
13 | for j in range(-len(t), len(t)): | ||||
14 | vereq(t[i:j], astuple[i:j]) | ||||
15 | |||||
Tim Peters | 7e0f81e | 2001-10-31 03:46:14 +0000 | [diff] [blame^] | 16 | # XXX more needed |