mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-24 18:01:38 +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 __future__ import unicode_literals
|
||||||
from nose.tools import eq_, assert_almost_equal, assert_greater
|
from nose.tools import eq_, assert_almost_equal, assert_greater
|
||||||
from wordfreq.query import (word_frequency, average_frequency, wordlist_size,
|
from wordfreq.query import (word_frequency, average_frequency, wordlist_size,
|
||||||
wordlist_info, metanl_word_frequency)
|
wordlist_info)
|
||||||
|
|
||||||
|
|
||||||
def test_freq_examples():
|
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):
|
def _check_normalized_frequencies(wordlist, lang):
|
||||||
assert_almost_equal(
|
assert_almost_equal(
|
||||||
average_frequency(wordlist, lang) * wordlist_size(wordlist, lang),
|
average_frequency(wordlist, lang) * wordlist_size(wordlist, lang),
|
||||||
|
Loading…
Reference in New Issue
Block a user