Skip to content

Commit 767064c

Browse files
committed
improving tests in test_cells
1 parent b89d036 commit 767064c

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/test_cells.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44
def test_cell_len_long_string():
55
# Long strings don't use cached cell length implementation
66
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
716

817

918
def test_set_cell_size():

0 commit comments

Comments
 (0)