mirror of https://github.com/explosion/spaCy.git
19 lines
328 B
Python
19 lines
328 B
Python
|
# -*- 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) == '"'
|