mirror of
https://github.com/Textualize/rich.git
synced 2026-02-06 10:58:48 +00:00
improved test_pick
This commit is contained in:
parent
6a23be1dd4
commit
ce631dab1c
@ -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…
Reference in New Issue
Block a user