mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-12 18:26:30 +03:00
Add regression test for #1612
This commit is contained in:
parent
833c66c9b2
commit
635792997c
12
spacy/tests/regression/test_issue1612.py
Normal file
12
spacy/tests/regression/test_issue1612.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
from __future__ import unicode_literals
|
||||
|
||||
import pytest
|
||||
|
||||
from ...lang.en import English
|
||||
|
||||
|
||||
def test_issue1612():
|
||||
nlp = English()
|
||||
doc = nlp('The black cat purrs.')
|
||||
span = doc[1: 3]
|
||||
assert span.orth_ == span.text
|
Loading…
Reference in New Issue
Block a user