diff options
| author | Michael W. Hudson <mwh@python.net> | 2002-06-11 13:38:42 +0000 |
|---|---|---|
| committer | Michael W. Hudson <mwh@python.net> | 2002-06-11 13:38:42 +0000 |
| commit | 589dc93620656faf80713b50b50d957664cea287 (patch) | |
| tree | 9d3dcd7814ba7fcc82b26ed7b8dac942899cfa85 /Lib | |
| parent | 75a20b19ef6925a5e6df55f4a738961127c25659 (diff) | |
| download | cpython-git-589dc93620656faf80713b50b50d957664cea287.tar.gz | |
Fix for problem reported by Neal Norwitz. Tighten up calculation of
slicelength. Include his test case.
Diffstat (limited to 'Lib')
| -rw-r--r-- | Lib/test/test_types.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_types.py b/Lib/test/test_types.py index 8452cecdc4..71e18c4bbd 100644 --- a/Lib/test/test_types.py +++ b/Lib/test/test_types.py @@ -374,6 +374,8 @@ vereq(a[3::-2], [3,1]) vereq(a[-100:100:], a) vereq(a[100:-100:-1], a[::-1]) vereq(a[-100L:100L:2L], [0,2,4]) +vereq(a[1000:2000:2], []) +vereq(a[-1000:-2000:-2], []) # deletion del a[::2] vereq(a, [1,3]) |
