mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Update regression test
This commit is contained in:
parent
02bdf490a1
commit
4c5f51e49e
16
spacy/tests/regression/test_issue636.py
Normal file
16
spacy/tests/regression/test_issue636.py
Normal file
|
@ -0,0 +1,16 @@
|
|||
# coding: utf8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
from ...tokens.doc import Doc
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.xfail
|
||||
@pytest.mark.models
|
||||
@pytest.mark.parametrize('text', ["I cant do this."])
|
||||
def test_issue636(EN, text):
|
||||
"""Test that to_bytes and from_bytes don't change the token lemma."""
|
||||
doc1 = EN(text)
|
||||
doc2 = Doc(EN.vocab)
|
||||
doc2.from_bytes(doc1.to_bytes())
|
||||
assert doc1[2].lemma_ == doc2[2].lemma_
|
Loading…
Reference in New Issue
Block a user