mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 18:06:29 +03:00
Add test for #1380. Passes without fix?
This commit is contained in:
parent
79a94bc166
commit
db05d4d582
13
spacy/tests/regression/test_issue1380.py
Normal file
13
spacy/tests/regression/test_issue1380.py
Normal 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
|
Loading…
Reference in New Issue
Block a user