Add regression test for #859

This commit is contained in:
ines 2017-03-01 16:07:27 +01:00
parent d25f17f139
commit c4f16c66d1
1 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1,13 @@
# encoding: utf8
from __future__ import unicode_literals
import pytest
@pytest.mark.xfail
@pytest.mark.parametrize('text', ["aaabbb@ccc.com\nThank you!"])
def test_issue859(en_tokenizer, text):
"""Test that no extra space is added in doc.text method."""
doc = en_tokenizer(text)
assert ' ' not in doc.text
assert doc.text == text