Merge pull request #793 from latkins/master

Added regression test for Issue #792.
This commit is contained in:
Ines Montani 2017-01-31 15:16:23 +01:00 committed by GitHub
commit 626ac282fe

View File

@ -0,0 +1,10 @@
# coding: utf-8
from __future__ import unicode_literals
@pytest.mark.xfail
@pytest.mark.parametrize('text', ["This is a string ", "This is a string\u0020"])
def test_issue792(en_tokenizer, text):
"""Test for Issue #792: Trailing whitespace is removed after parsing."""
doc = en_tokenizer(text)
assert(doc.text_with_ws == text)