mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
add a specific test in Catalan
This commit is contained in:
parent
ff5a8f2a65
commit
4376636316
@ -17,3 +17,10 @@ def test_apostrophes():
|
||||
eq_(tokenize("This isn't French", lang),
|
||||
['this', "isn't", 'french'])
|
||||
|
||||
|
||||
def test_catalan():
|
||||
# Catalan orthography is fiddly. Test that we get a short sentence right.
|
||||
eq_(tokenize("M'acabo d'instal·lar.", 'ca'),
|
||||
['m', 'acabo', 'd', 'instal·lar'])
|
||||
eq_(tokenize("M'acabo d'instal·lar.", 'ca', include_punctuation=True),
|
||||
["m'", 'acabo', "d'", 'instal·lar', '.'])
|
Loading…
Reference in New Issue
Block a user