Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
218a876f
Commit
218a876f
authored
May 18, 2017
by
Damien George
Browse files
tests/basics/builtin_range: Add tests for negative slicing of range.
parent
03659c51
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/basics/builtin_range.py
View file @
218a876f
...
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment