From a471114eb2c9dffff27de12772e69b58e58f4dd1 Mon Sep 17 00:00:00 2001 From: Juan Miguel Cejuela Date: Wed, 1 Mar 2017 21:30:51 +0100 Subject: [PATCH] #781 add regression test, failing previous bug fix --- spacy/tests/regression/test_issue781.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 spacy/tests/regression/test_issue781.py diff --git a/spacy/tests/regression/test_issue781.py b/spacy/tests/regression/test_issue781.py new file mode 100644 index 000000000..56a1a9ef0 --- /dev/null +++ b/spacy/tests/regression/test_issue781.py @@ -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])