Skip to content

Commit b6fff41

Browse files
committed
tests/basics: Add test for tuple inplace add.
1 parent 81d2ca2 commit b6fff41

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

tests/basics/tuple1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@
1717

1818
print(x + (10, 100, 10000))
1919

20+
# inplace add operator
21+
x += (10, 11, 12)
22+
print(x)
23+
2024
# construction of tuple from large iterator (tests implementation detail of uPy)
2125
print(tuple(range(20)))
2226

0 commit comments

Comments
 (0)