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

crypto-aes
Damien George 6 years ago
parent 03659c51ca
commit 218a876f97

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