mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 12:18:04 +03:00
28 lines
579 B
Python
28 lines
579 B
Python
from __future__ import unicode_literals
|
|
import pytest
|
|
|
|
|
|
def test_neq(en_vocab):
|
|
addr = en_vocab['Hello']
|
|
assert en_vocab['bye'].orth != addr.orth
|
|
|
|
|
|
def test_eq(en_vocab):
|
|
addr = en_vocab['Hello']
|
|
assert en_vocab['Hello'].orth == addr.orth
|
|
|
|
|
|
def test_case_neq(en_vocab):
|
|
addr = en_vocab['Hello']
|
|
assert en_vocab['hello'].orth != addr.orth
|
|
|
|
|
|
def test_punct_neq(en_vocab):
|
|
addr = en_vocab['Hello']
|
|
assert en_vocab['Hello,'].orth != addr.orth
|
|
|
|
|
|
def test_shape_attr(en_vocab):
|
|
example = en_vocab['example']
|
|
assert example.orth != example.shape
|