From 99f0a315f95ea71881853f738dc809133f419b2e Mon Sep 17 00:00:00 2001 From: Matthew Honnibal Date: Sun, 8 Feb 2015 18:30:46 -0500 Subject: [PATCH] * Add test for Issue 24 --- tests/test_add_lemmas.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_add_lemmas.py b/tests/test_add_lemmas.py index ee9fe4850..01c410b90 100644 --- a/tests/test_add_lemmas.py +++ b/tests/test_add_lemmas.py @@ -1,3 +1,5 @@ +from __future__ import unicode_literals + from spacy.en import English import pytest @@ -25,3 +27,8 @@ def test_lemmas(lemmas, tagged): assert lemmas[3] == 'be' if tagged[2].tag == tagged[4].tag: assert lemmas[4] == 'goose' + + +def test_didnt(EN): + tokens = EN(u"I didn't do it") + assert tokens[1].lemma_ != u""