mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Move test for #361 to regression tests
This commit is contained in:
parent
a6d7147cf0
commit
c3d4516fc2
11
spacy/tests/regression/test_issue361.py
Normal file
11
spacy/tests/regression/test_issue361.py
Normal 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]
|
|
@ -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'''
|
||||
|
|
Loading…
Reference in New Issue
Block a user