mirror of https://github.com/explosion/spaCy.git
Add regression test for #1612
This commit is contained in:
parent
833c66c9b2
commit
635792997c
|
@ -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