blob: 33d3313a14aaa98793fc52b3e3b2d2ac91414c64 [file] [log] [blame]
Tim Petersc2fe6182001-10-30 23:20:46 +00001from test_support import vereq
2
3import time
4
5t = time.gmtime()
6astuple = tuple(t)
7vereq(len(t), len(astuple))
8vereq(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.
12for 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
16XXX more needed