diff options
author | Damien George <damien.p.george@gmail.com> | 2017-04-02 17:31:32 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-04-02 17:31:32 +1000 |
commit | bf51e2ff980584603853cc1e7d47b8012316618f (patch) | |
tree | 95c896512b00c21d4133493dbc0f39c582af20ad /tests/basics/bytearray_slice_assign.py | |
parent | a5500a8aad263054e9530a03da18c0c0961424b2 (diff) | |
download | micropython-bf51e2ff980584603853cc1e7d47b8012316618f.tar.gz micropython-bf51e2ff980584603853cc1e7d47b8012316618f.zip |
tests/basics: Add tests for list and bytearray growing using themselves.
Diffstat (limited to 'tests/basics/bytearray_slice_assign.py')
-rw-r--r-- | tests/basics/bytearray_slice_assign.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/basics/bytearray_slice_assign.py b/tests/basics/bytearray_slice_assign.py index 510e784da7..c4b5c43e33 100644 --- a/tests/basics/bytearray_slice_assign.py +++ b/tests/basics/bytearray_slice_assign.py @@ -51,6 +51,11 @@ b = bytearray(10) b[:-1] = bytearray(500) print(len(b), b[0], b[-1]) +# extension with self on RHS +b = bytearray(x) +b[4:] = b +print(b) + # Assignment of bytes to array slice b = bytearray(2) b[1:1] = b"12345" |