From 635792997cca666be560503e2d95f6e79225c2bf Mon Sep 17 00:00:00 2001 From: Burton DeWilde Date: Mon, 20 Nov 2017 11:37:45 -0600 Subject: [PATCH] Add regression test for #1612 --- spacy/tests/regression/test_issue1612.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 spacy/tests/regression/test_issue1612.py diff --git a/spacy/tests/regression/test_issue1612.py b/spacy/tests/regression/test_issue1612.py new file mode 100644 index 000000000..4587a785f --- /dev/null +++ b/spacy/tests/regression/test_issue1612.py @@ -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