Skip to content

Commit

Permalink
Update test_word_delimiters.py
Browse files Browse the repository at this point in the history
Add assertion for not having broken old functionality.
  • Loading branch information
JorjMcKie committed Oct 2, 2023
1 parent 2cb0285 commit b5fb574
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_word_delimiters.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ def test_delimiters():
# Standard words extraction:
# only spaces and line breaks start a new word
words0 = [w[4] for w in page.get_text("words")]
assert words0 == ["word1,word2", "-", "word3.", "word4?word5."]

# extract words again
words1 = [w[4] for w in page.get_text("words", delimiters=string.punctuation)]
Expand Down

0 comments on commit b5fb574

Please sign in to comment.