* 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

View File

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