tests: Test slicing a range that does not start at zero.

This commit is contained in:
Tom Soulanille 2015-09-26 16:57:13 -07:00 committed by Damien George
parent 0d28a3edb9
commit 2a8a564fbd
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@ print(range(4)[1:2])
print(range(4)[1:3])
print(range(4)[1::2])
print(range(4)[1:-2:2])
print(range(1,4)[:])
print(range(1,4)[0:])
print(range(1,4)[1:])
print(range(1,4)[:-1])
print(range(7,-2,-4)[:])
# attrs
print(range(1, 2, 3).start)