* Add incomplete tests of asciify function

This commit is contained in:
Matthew Honnibal 2014-09-01 23:25:51 +02:00
parent 151aa14bba
commit c5abb81f4c

18
tests/test_asciify.py Normal file
View File

@ -0,0 +1,18 @@
# -*- coding: utf8 -*-
from __future__ import unicode_literals
import pytest
from spacy.orth import asciify
def test_tilde():
string = u'hõmbre'
assert asciify(string) == u'hombre'
def test_smart_quote():
string = u''
assert asciify(string) == '"'
string = u''
assert asciify(string) == '"'