Browse Source

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

pull/3096/head
Damien George 8 years ago
parent
commit
218a876f97
  1. 4
      tests/basics/builtin_range.py

4
tests/basics/builtin_range.py

@ -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:

Loading…
Cancel
Save