blob: 9261d6f9c49fb0b4a646c0a5969f25fa4833bb25 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
from rich._pick import pick_bool
def test_pick_bool():
assert pick_bool(False, True) == False
assert pick_bool(None, True) == True
assert pick_bool(True, None) == True
assert pick_bool(False, None) == False
assert pick_bool(None, None) == False
assert pick_bool(None, None, False, True) == False
assert pick_bool(None, None, True, False) == True
|