tests/basics/builtin_range: Add tests for negative slicing of range.

This commit is contained in:
Damien George 2017-05-18 10:33:50 +10:00
parent 03659c51ca
commit 218a876f97
1 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,10 @@ print(range(1, 4)[0:])
print(range(1, 4)[1:])
print(range(1, 4)[:-1])
print(range(7, -2, -4)[:])
print(range(1, 100, 5)[5:15:3])
print(range(1, 100, 5)[15:5:-3])
print(range(100, 1, -5)[5:15:3])
print(range(100, 1, -5)[15:5:-3])
# zero step
try: