mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 17:31:41 +00:00
Remove the tests for metanl_word_frequency too. Doh.
Former-commit-id: 68d262791c
This commit is contained in:
parent
65f61d8a2e
commit
3340367519
@ -1,7 +1,7 @@
|
||||
from __future__ import unicode_literals
|
||||
from nose.tools import eq_, assert_almost_equal, assert_greater
|
||||
from wordfreq.query import (word_frequency, average_frequency, wordlist_size,
|
||||
wordlist_info, metanl_word_frequency)
|
||||
wordlist_info)
|
||||
|
||||
|
||||
def test_freq_examples():
|
||||
@ -27,11 +27,6 @@ def test_freq_examples():
|
||||
)
|
||||
|
||||
|
||||
def test_compatibility():
|
||||
assert_almost_equal(metanl_word_frequency('the|en'), 1e9, places=3)
|
||||
assert_almost_equal(metanl_word_frequency('the|en', offset=1e9), 2e9, places=3)
|
||||
|
||||
|
||||
def _check_normalized_frequencies(wordlist, lang):
|
||||
assert_almost_equal(
|
||||
average_frequency(wordlist, lang) * wordlist_size(wordlist, lang),
|
||||
|
Loading…
Reference in New Issue
Block a user