summaryrefslogtreecommitdiffstatshomepage
path: root/tests
diff options
context:
space:
mode:
authorPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-02 03:32:55 +0200
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2014-02-02 03:32:55 +0200
commit13cfabd1b265d974e53e03d1d77eac7dc1d000e5 (patch)
tree61ab58a956a1fd39bd89c1a400dd56d90e11483e /tests
parent7364af2d8cd72467bbb3bf135b29fae47105b232 (diff)
downloadmicropython-13cfabd1b265d974e53e03d1d77eac7dc1d000e5.tar.gz
micropython-13cfabd1b265d974e53e03d1d77eac7dc1d000e5.zip
Implement slicing for lists.
Diffstat (limited to 'tests')
-rw-r--r--tests/basics/list1.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/list1.py b/tests/basics/list1.py
index 250a12b704..8dc3939dd6 100644
--- a/tests/basics/list1.py
+++ b/tests/basics/list1.py
@@ -16,3 +16,7 @@ print(x)
x += [2, 1]
print(x)
+
+print(x[1:])
+print(x[:-1])
+print(x[2:3])