micropython: add micropython component
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
# test builtin "all" and "any"
|
||||
|
||||
tests = (
|
||||
(),
|
||||
[],
|
||||
[False],
|
||||
[True],
|
||||
[False, True],
|
||||
[True, False],
|
||||
[False, False],
|
||||
[True, True],
|
||||
range(10),
|
||||
)
|
||||
|
||||
for test in tests:
|
||||
print(all(test))
|
||||
|
||||
for test in tests:
|
||||
print(any(test))
|
Reference in New Issue
Block a user