From b6fff4186de098946cc1e4c0204f78936f73044f Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 5 Apr 2017 12:38:18 +1000 Subject: [PATCH] tests/basics: Add test for tuple inplace add. --- tests/basics/tuple1.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/basics/tuple1.py b/tests/basics/tuple1.py index 2993391d53..a7956c1072 100644 --- a/tests/basics/tuple1.py +++ b/tests/basics/tuple1.py @@ -17,6 +17,10 @@ print(x[2:3]) print(x + (10, 100, 10000)) +# inplace add operator +x += (10, 11, 12) +print(x) + # construction of tuple from large iterator (tests implementation detail of uPy) print(tuple(range(20)))