mirror of
https://github.com/explosion/spaCy.git
synced 2024-12-26 09:56:28 +03:00
19 lines
330 B
Python
19 lines
330 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) == b'hombre'
|
|
|
|
|
|
def test_smart_quote():
|
|
string = u'“'
|
|
assert asciied(string) == b'"'
|
|
string = u'”'
|
|
assert asciied(string) == b'"'
|