Add test for #1380. Passes without fix?

This commit is contained in:
Matthew Honnibal 2017-10-04 14:56:16 +02:00
parent 79a94bc166
commit db05d4d582

View File

@ -0,0 +1,13 @@
import pytest
from ...language import Language
def test_issue1380_empty_string():
nlp = Language()
doc = nlp('')
assert len(doc) == 0
@pytest.mark.models('en')
def test_issue1380_en(EN):
doc = EN('')
assert len(doc) == 0