Skip to content

Commit

Permalink
Re-add regression test for #859
Browse files Browse the repository at this point in the history
  • Loading branch information
ines committed Mar 8, 2017
1 parent 77f0594 commit c2e3e65
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions spacy/tests/regression/test_issue859.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# encoding: utf8
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

0 comments on commit c2e3e65

Please sign in to comment.