spaCy/tests/test_only_punct.py
Matthew Honnibal 11915e5238 * Update tests
2014-11-03 00:23:04 +11:00

12 lines
203 B
Python

from __future__ import unicode_literals
import pytest
from spacy.en import EN
def test_only_pre1():
assert len(EN.tokenize("(")) == 1
def test_only_pre2():
assert len(EN.tokenize("((")) == 2