Move test for #361 to regression tests

This commit is contained in:
Ines Montani 2017-01-12 15:51:03 +01:00
parent a6d7147cf0
commit c3d4516fc2
2 changed files with 11 additions and 14 deletions

View File

@ -0,0 +1,11 @@
# coding: utf-8
from __future__ import unicode_literals
import pytest
@pytest.mark.parametrize('text1,text2', [("cat", "dog")])
def test_issue361(en_vocab, text1, text2):
"""Test Issue #361: Equality of lexemes"""
assert en_vocab[text1] == en_vocab[text1]
assert en_vocab[text1] != en_vocab[text2]

View File

@ -5,21 +5,7 @@ import pytest
from spacy.attrs import *
def test_lexeme_eq(en_vocab):
'''Test Issue #361: Equality of lexemes'''
cat1 = en_vocab['cat']
cat2 = en_vocab['cat']
assert cat1 == cat2
def test_lexeme_neq(en_vocab):
'''Inequality of lexemes'''
cat = en_vocab['cat']
dog = en_vocab['dog']
assert cat != dog
def test_lexeme_lt(en_vocab):
'''More frequent is l.t. less frequent'''