diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-19 20:06:57 +0300 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-04-19 20:06:57 +0300 |
commit | d6e12723edd40ce80bbaf49d11fd978b248b4dfc (patch) | |
tree | c34ac9869f7ab6e63f9aab66723f8cca84bb5867 /tests | |
parent | 9ae09124963e91bda6b6b8ed4ac993eecc409d47 (diff) | |
download | micropython-d6e12723edd40ce80bbaf49d11fd978b248b4dfc.tar.gz micropython-d6e12723edd40ce80bbaf49d11fd978b248b4dfc.zip |
objarray: Implement slice subscription.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/basics/bytearray1.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/basics/bytearray1.py b/tests/basics/bytearray1.py index e564165b9f..02066cafc3 100644 --- a/tests/basics/bytearray1.py +++ b/tests/basics/bytearray1.py @@ -13,3 +13,7 @@ s = 0 for i in a: s += i print(s) + +print(a[1:]) +print(a[:-1]) +print(a[2:3]) |