mirror of
https://github.com/explosion/spaCy.git
synced 2025-06-06 14:13:11 +03:00
* Upd asciify test, fixing type error
This commit is contained in:
parent
0cf8200e4e
commit
64f33a8705
|
@ -8,11 +8,11 @@ from spacy.orth import asciied
|
||||||
|
|
||||||
def test_tilde():
|
def test_tilde():
|
||||||
string = u'hõmbre'
|
string = u'hõmbre'
|
||||||
assert asciied(string) == u'hombre'
|
assert asciied(string) == b'hombre'
|
||||||
|
|
||||||
|
|
||||||
def test_smart_quote():
|
def test_smart_quote():
|
||||||
string = u'“'
|
string = u'“'
|
||||||
assert asciied(string) == '"'
|
assert asciied(string) == b'"'
|
||||||
string = u'”'
|
string = b'”'
|
||||||
assert asciied(string) == '"'
|
assert asciied(string) == b'"'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user