mirror of https://github.com/explosion/spaCy.git
* Add incomplete tests of asciify function
This commit is contained in:
parent
151aa14bba
commit
c5abb81f4c
|
@ -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) == '"'
|
Loading…
Reference in New Issue