diff --git a/tests/test_morph_exceptions.py b/tests/test_morph_exceptions.py index beacc9be9..eff0478cc 100644 --- a/tests/test_morph_exceptions.py +++ b/tests/test_morph_exceptions.py @@ -21,5 +21,5 @@ def test_load_exc(EN, morph_exc): EN.tagger.load_morph_exceptions(morph_exc) tokens = EN('I like his style.', tag=True) his = tokens[2] - assert EN.tagger.tag_names[his.pos] == 'PRP$' + assert EN.tagger.tag_names[his.fine_pos] == 'PRP$' assert his.lemma == '-PRP-' diff --git a/tests/test_tokenizer.py b/tests/test_tokenizer.py index f11d19f8f..93e4fd711 100644 --- a/tests/test_tokenizer.py +++ b/tests/test_tokenizer.py @@ -110,7 +110,6 @@ def test_cnts6(EN): words = [t.string for t in tokens] assert len(words) == 6 - #def test_cnts7(): # text = 'But then the 6,000-year ice age came...' # tokens = EN.tokenize(text) diff --git a/tests/test_vocab.py b/tests/test_vocab.py index f0640e633..0a739ad0e 100644 --- a/tests/test_vocab.py +++ b/tests/test_vocab.py @@ -27,3 +27,8 @@ def test_case_neq(EN): def test_punct_neq(EN): addr = EN.vocab['Hello'] assert EN.vocab['Hello,']['sic'] != addr['sic'] + + +def test_shape_attr(EN): + example = EN.vocab['example'] + assert example['sic'] != example['shape']