mirror of https://github.com/explosion/spaCy.git
* 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():
|
||||
string = u'hõmbre'
|
||||
assert asciied(string) == u'hombre'
|
||||
assert asciied(string) == b'hombre'
|
||||
|
||||
|
||||
def test_smart_quote():
|
||||
string = u'“'
|
||||
assert asciied(string) == '"'
|
||||
string = u'”'
|
||||
assert asciied(string) == '"'
|
||||
assert asciied(string) == b'"'
|
||||
string = b'”'
|
||||
assert asciied(string) == b'"'
|
||||
|
|
Loading…
Reference in New Issue