Test that we can leave the wordlist unspecified and get 'large' freqs

This commit is contained in:
Robyn Speer 2018-03-08 18:09:57 -05:00
parent 8e3dff3c1c
commit 53dc0bbb1a

View File

@ -15,6 +15,9 @@ def test_freq_examples():
assert_greater(word_frequency('de', 'es'),
word_frequency('the', 'es'))
# We get word frequencies from the 'large' list when available
assert_greater(word_frequency('infrequency', 'en'), 0.)
# To test the reasonableness of the Twitter list, we want to look up a
# common word representing laughter in each language. The default for