tests/basics: Add more tuple tests to improve coverage testing.
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user