File tree Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Expand file tree Collapse file tree 3 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,7 @@ The following people have contributed to the development of Rich:
18
18
- [ Michał Górny] ( https://github.com/mgorny )
19
19
- [ Nok Lam Chan] ( https://github.com/noklam )
20
20
- [ Leron Gray] ( https://github.com/daddycocoaman )
21
+ - [ Andre Hora] ( https://github.com/andrehora )
21
22
- [ Kenneth Hoste] ( https://github.com/boegel )
22
23
- [ Lanqing Huang] ( https://github.com/lqhuang )
23
24
- [ Finn Hughes] ( https://github.com/finnhughes )
Original file line number Diff line number Diff line change 4
4
def test_cell_len_long_string ():
5
5
# Long strings don't use cached cell length implementation
6
6
assert cells .cell_len ("abc" * 200 ) == 3 * 200
7
+ # Boundary case
8
+ assert cells .cell_len ("a" * 512 ) == 512
9
+
10
+
11
+ def test_cell_len_short_string ():
12
+ # Short strings use cached cell length implementation
13
+ assert cells .cell_len ("abc" * 100 ) == 3 * 100
14
+ # Boundary case
15
+ assert cells .cell_len ("a" * 511 ) == 511
7
16
8
17
9
18
def test_set_cell_size ():
Original file line number Diff line number Diff line change 2
2
3
3
4
4
def test_pick_bool ():
5
+ assert pick_bool (False ) == False
6
+ assert pick_bool (True ) == True
7
+ assert pick_bool (None ) == False
5
8
assert pick_bool (False , True ) == False
6
9
assert pick_bool (None , True ) == True
7
10
assert pick_bool (True , None ) == True
You can’t perform that action at this time.
0 commit comments