mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-15 03:56:23 +03:00
14 lines
244 B
Python
14 lines
244 B
Python
|
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
|