Skip to content

Commit a34cb66

Browse files
committed
test: add test for suffix handling without apostrophe
1 parent e41d1c5 commit a34cb66

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

tests/test_pipeline.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,13 @@ def test_process_text_removes_common_suffix_stopwords() -> None:
5353
rejoin_suffixes=True,
5454
)
5555
assert tokens == ["ankara'da", 'ilginç', 'şeyler', '.']
56+
57+
58+
def test_process_text_suffix_without_apostrophe_disabled() -> None:
59+
tokens = process_text(
60+
"Ankara ya gidiyoruz.",
61+
remove_stopwords=True,
62+
rejoin_suffixes=True,
63+
rejoin_suffix_allow_without_apostrophe=False,
64+
)
65+
assert tokens == ['ankara', 'gidiyoruz', '.']

0 commit comments

Comments
 (0)