mirror of
https://github.com/explosion/spaCy.git
synced 2024-11-11 04:08:09 +03:00
Add regression test for #759
This commit is contained in:
parent
09ecc39b4e
commit
5f6f48e734
12
spacy/tests/regression/test_issue759.py
Normal file
12
spacy/tests/regression/test_issue759.py
Normal file
|
@ -0,0 +1,12 @@
|
|||
# coding: utf-8
|
||||
from __future__ import unicode_literals
|
||||
|
||||
import pytest
|
||||
|
||||
|
||||
@pytest.mark.parametrize('text,is_num', [("one", True), ("ten", True),
|
||||
("teneleven", False)])
|
||||
def test_issue759(en_tokenizer, text, is_num):
|
||||
"""Test that numbers are recognised correctly."""
|
||||
tokens = en_tokenizer(text)
|
||||
assert tokens[0].like_num == is_num
|
Loading…
Reference in New Issue
Block a user