* Upd asciify test, fixing type error

This commit is contained in:
Matthew Honnibal 2015-01-06 01:03:29 +11:00
parent 0cf8200e4e
commit 64f33a8705
1 changed files with 4 additions and 4 deletions

View File

@ -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'"'