Skip to content

Commit 5550827

Browse files
committed
Fixed unit test.
1 parent f5ef6d3 commit 5550827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_semchunk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def test_chunk():
2020
# Test a variety of chunk sizes.
2121
for chunk_size in range(1,100):
2222
for chunk in semchunk.chunk(LOREM, chunk_size=chunk_size, token_counter=_token_counter):
23-
assert _token_counter(chunk) <= 1
23+
assert _token_counter(chunk) <= chunk_size
2424

2525
# Test a chunk size larger than the text.
2626
semchunk.chunk(LOREM, chunk_size=len(LOREM)**2, token_counter=_token_counter)

0 commit comments

Comments
 (0)