Skip to content

Commit

Permalink
Fixed unit test.
Browse files Browse the repository at this point in the history
  • Loading branch information
umarbutler committed Nov 5, 2023
1 parent f5ef6d3 commit 5550827
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_semchunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def test_chunk():
# Test a variety of chunk sizes.
for chunk_size in range(1,100):
for chunk in semchunk.chunk(LOREM, chunk_size=chunk_size, token_counter=_token_counter):
assert _token_counter(chunk) <= 1
assert _token_counter(chunk) <= chunk_size

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

0 comments on commit 5550827

Please sign in to comment.