added arabic tests

This commit is contained in:
Joshua Chin 2015-07-07 15:10:59 -04:00
parent 9aa773aa2b
commit f83d31a357

View File

@ -137,3 +137,14 @@ def test_not_really_random():
@raises(ValueError) @raises(ValueError)
def test_not_enough_ascii(): def test_not_enough_ascii():
random_ascii_words(lang='zh') random_ascii_words(lang='zh')
def test_ar():
eq_(
tokenize('متــــــــعب', 'ar'),
['متعب']
)
eq_(
tokenize('حَرَكَات', 'ar'),
['حركات']
)