improved test_pick

This commit is contained in:
Andre Hora 2023-01-29 10:59:22 -03:00
parent 6a23be1dd4
commit ce631dab1c
2 changed files with 4 additions and 0 deletions

View file

@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed
- Updated test_cells to cover boundary cases of cell_len
- Updated test_pick to cover untested inputs of pick_bool
## [13.3.1] - 2023-01-28

View file

@ -2,6 +2,9 @@ from rich._pick import pick_bool
def test_pick_bool():
assert pick_bool(False) == False
assert pick_bool(True) == True
assert pick_bool(None) == False
assert pick_bool(False, True) == False
assert pick_bool(None, True) == True
assert pick_bool(True, None) == True