mirror of https://github.com/explosion/spaCy.git
Update docstring in #886 regression test
This commit is contained in:
parent
51ba3ef0a8
commit
d70386ec6e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue