Add test for Issue #435

This commit is contained in:
Matthew Honnibal 2016-09-27 13:52:38 +02:00
parent 3cb4d455d2
commit 9c8ac91d72
1 changed files with 6 additions and 0 deletions

View File

@ -45,6 +45,12 @@ def test_noun_lemmas(lemmatizer):
assert do('axes') == set(['axis', 'axe', 'ax'])
def test_base_form_dive(lemmatizer):
do = lemmatizer.noun
assert do('dive', number='sing') == set(['dive'])
assert do('dive', number='plur') == set(['diva'])
def test_smart_quotes(lemmatizer):
do = lemmatizer.punct
assert do('') == set(['"'])