diff options
Diffstat (limited to 'tests/basics/tuple1.py')
-rw-r--r-- | tests/basics/tuple1.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/basics/tuple1.py b/tests/basics/tuple1.py index 53eac2a306..2993391d53 100644 --- a/tests/basics/tuple1.py +++ b/tests/basics/tuple1.py @@ -16,3 +16,18 @@ print(x[:-1]) print(x[2:3]) print(x + (10, 100, 10000)) + +# construction of tuple from large iterator (tests implementation detail of uPy) +print(tuple(range(20))) + +# unsupported unary operation +try: + +() +except TypeError: + print('TypeError') + +# unsupported type on RHS of add +try: + () + None +except TypeError: + print('TypeError') |