mirror of
https://github.com/Textualize/rich.git
synced 2025-07-07 21:04:58 +00:00
improved test_pick
This commit is contained in:
parent
6a23be1dd4
commit
ce631dab1c
2 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue