Skip to content

Commit

Permalink
Increased code coverage to 100%.
Browse files Browse the repository at this point in the history
  • Loading branch information
umarbutler committed Nov 6, 2023
1 parent b0154d5 commit 4dfbdd5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_semchunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,7 @@ def test_chunk() -> None:

# Test that recombining lowercased chunks stripped of whitespace yields the original text.
lowercased_no_whitespace = ''.join(sample.lower().split())
assert ''.join(semchunk.chunk(lowercased_no_whitespace, chunk_size, _token_counter)) == lowercased_no_whitespace
assert ''.join(semchunk.chunk(lowercased_no_whitespace, chunk_size, _token_counter)) == lowercased_no_whitespace

# Test a string where tabs must be used as splitters (to increase code coverage).
assert semchunk.chunk('ThisIs\tATest.', 4, _token_counter) == ['ThisIs', 'ATest.']

0 comments on commit 4dfbdd5

Please sign in to comment.