summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/builtin_allany.py
blob: 7eb8bc6afe0eeae49241c2258faa119f09cc3c98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# test builtin "all" and "any"

tests = (
    (),
    [],
    [False],
    [True],
    [False, True],
    [True, False],
    [False, False],
    [True, True],
    (False for i in range(10)),
    (True for i in range(10)),
)

for test in tests:
    print(all(test))

for test in tests:
    print(any(test))