mirror of
https://github.com/rspeer/wordfreq.git
synced 2024-12-23 09:21:37 +00:00
make the tests less picky about numerical exactness
Former-commit-id: 2b2bd943d2
This commit is contained in:
parent
313306f12e
commit
5168da105a
@ -28,8 +28,8 @@ def test_freq_examples():
|
||||
|
||||
|
||||
def test_compatibility():
|
||||
eq_(metanl_word_frequency('the|en'), 1e9)
|
||||
eq_(metanl_word_frequency('the|en', offset=1e9), 2e9)
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user