We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b89d036 commit 767064cCopy full SHA for 767064c
tests/test_cells.py
@@ -4,6 +4,15 @@
4
def test_cell_len_long_string():
5
# Long strings don't use cached cell length implementation
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
15
+ assert cells.cell_len("a" * 511) == 511
16
17
18
def test_set_cell_size():
0 commit comments