Skip to content

Commit

Permalink
Update docstring in #886 regression test
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Mar 13, 2017
1 parent 51ba3ef commit d70386e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spacy/tests/regression/test_issue886.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

@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)
Expand Down

0 comments on commit d70386e

Please sign in to comment.