mirror of
https://github.com/explosion/spaCy.git
synced 2025-01-24 16:24:16 +03:00
Add regression test for #1698
This commit is contained in:
parent
6455b574fc
commit
9c1ee65268
11
spacy/tests/regression/test_issue1698.py
Normal file
11
spacy/tests/regression/test_issue1698.py
Normal file
|
@ -0,0 +1,11 @@
|
|||
# coding: utf8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.parametrize('text', ['test@example.com', 'john.doe@example.co.uk'])
|
||||
def test_issue1698(en_tokenizer, text):
|
||||
doc = en_tokenizer(text)
|
||||
assert len(doc) == 1
|
||||
assert not doc[0].like_url
|
Loading…
Reference in New Issue
Block a user