Add regression test for #1612

This commit is contained in:
Burton DeWilde 2017-11-20 11:37:45 -06:00
parent 833c66c9b2
commit 635792997c

View 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