From d70386ec6e7ac524e66391d868a085cc2e8aa588 Mon Sep 17 00:00:00 2001 From: ines Date: Mon, 13 Mar 2017 12:00:38 +0100 Subject: [PATCH] Update docstring in #886 regression test --- spacy/tests/regression/test_issue886.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spacy/tests/regression/test_issue886.py b/spacy/tests/regression/test_issue886.py index a3e4a3cd4..719036a09 100644 --- a/spacy/tests/regression/test_issue886.py +++ b/spacy/tests/regression/test_issue886.py @@ -6,7 +6,7 @@ import pytest @pytest.mark.parametrize('text', ["Datum:2014-06-02\nDokument:76467"]) def test_issue886(en_tokenizer, text): - """Test that no extra space is added in doc.text method.""" + """Test that token.idx matches the original text index for texts with newlines.""" doc = en_tokenizer(text) for token in doc: assert len(token.text) == len(token.text_with_ws)