There was an error while loading. Please reload this page.
1 parent 3c82d1d commit d5f42c9Copy full SHA for d5f42c9
tests/basics/list1.py
@@ -22,3 +22,9 @@
22
print(x[1:])
23
print(x[:-1])
24
print(x[2:3])
25
+
26
+# unsupported type on RHS of add
27
+try:
28
+ [] + None
29
+except TypeError:
30
+ print('TypeError')
tests/basics/list_mult.py
@@ -10,3 +10,9 @@
10
a = [1, 2, 3]
11
c = a * 3
12
print(a, c)
13
14
+# unsupported type on RHS
15
16
+ [] * None
17
18
tests/basics/list_pop.py
@@ -9,3 +9,9 @@
9
print("IndexError raised")
else:
raise AssertionError("No IndexError raised")
+# popping such that list storage shrinks (tests implementation detail of uPy)
+l = list(range(20))
+for i in range(len(l)):
+ l.pop()
+print(l)
0 commit comments