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

This commit is contained in:
Rob Speer 2018-03-08 18:09:57 -05:00
parent 47dac3b0b8
commit 1594ba3ad6

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