summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/bool1.py
blob: 35d9ed8ccc0284e104177b533113b644bbf4483e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# tests for bool objects

# basic logic
print(not False)
print(not True)
print(False and True)
print(False or True)

# unary operators
print(+True)
print(-True)

# unsupported unary op
try:
    len(False)
except TypeError:
    print('TypeError')