mirror of
https://github.com/micropython/micropython.git
synced 2026-01-06 12:10:13 +01:00
tests/basics: Add tests for list and bytearray growing using themselves.
This commit is contained in:
@@ -26,3 +26,8 @@ print(l)
|
||||
l = list(x)
|
||||
l[100:100] = [10, 20, 30, 40]
|
||||
print(l)
|
||||
|
||||
# growing by using itself on RHS
|
||||
l = list(range(10))
|
||||
l[4:] = l
|
||||
print(l)
|
||||
|
||||
Reference in New Issue
Block a user