
So that navite emitter passes (comprehensions use yield which is not yet supported by native emitter).
20 lines
258 B
Python
20 lines
258 B
Python
# 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))
|