spaCy/tests/test_asciify.py
2014-09-10 18:27:44 +02:00

19 lines
328 B
Python

# -*- coding: utf8 -*-
from __future__ import unicode_literals
import pytest
from spacy.orth import asciied
def test_tilde():
string = u'hõmbre'
assert asciied(string) == u'hombre'
def test_smart_quote():
string = u''
assert asciied(string) == '"'
string = u''
assert asciied(string) == '"'