spaCy/spacy/tests/regression/test_issue859.py

13 lines
362 B
Python
Raw Normal View History

2017-03-12 15:07:28 +03:00
# coding: utf8
2017-03-08 16:36:09 +03:00
from __future__ import unicode_literals
import pytest
@pytest.mark.parametrize('text', ["aaabbb@ccc.com\nThank you!",
"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 doc.text == text