Skip to content

Commit

Permalink
Add test that reproduces the empty stem bug in the greek stemmer
Browse files Browse the repository at this point in the history
  • Loading branch information
NC0DER authored and miso-belica committed Jun 13, 2022
1 parent 9148694 commit ee74692
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_stemmers.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,10 @@ def test_slovak_stemmer():

assert type(actual) is type(expected)
assert expected.__dict__ == actual.__dict__


def test_greek_stemmer():
greek_stemmer = Stemmer("greek")
# The first assert covers the empty stem case.
assert "οτ" == greek_stemmer("όταν")
assert "εργαζ" == greek_stemmer("εργαζόμενος")

0 comments on commit ee74692

Please sign in to comment.