#781 add regression test, failing previous bug fix

This commit is contained in:
Juan Miguel Cejuela 2017-03-01 21:30:51 +01:00
parent c4f16c66d1
commit a471114eb2
1 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,10 @@
# coding: utf-8
from __future__ import unicode_literals
import pytest
# Note: "chromosomes" worked previous the bug fix
@pytest.mark.parametrize('word,lemma', [("chromosomes", "chromosome"), ("endosomes", "endosome"), ("colocalizes", "colocalize")])
def test_issue781(path, lemmatizer, word, lemma):
assert lemmatizer(word, 'noun', morphology={'number': 'plur'}) == set([lemma])