forked from mrlan/EnglishPal
Fix bug 533
parent
4d9cc1fe08
commit
4be8ff75f8
|
@ -6,9 +6,7 @@ def test_coverage_percentage():
|
||||||
text_list = load_text_list_from_db("db\wordfreqapp.db")
|
text_list = load_text_list_from_db("db\wordfreqapp.db")
|
||||||
word_set = load_word_list("db\The_Oxford.csv")
|
word_set = load_word_list("db\The_Oxford.csv")
|
||||||
coverage_percentage = calculate_coverage(text_list, word_set)
|
coverage_percentage = calculate_coverage(text_list, word_set)
|
||||||
|
|
||||||
assert 0 <= coverage_percentage <= 100, "Coverage percentage is not within the range [0, 100]"
|
assert 0 <= coverage_percentage <= 100, "Coverage percentage is not within the range [0, 100]"
|
||||||
|
|
||||||
print("coverage_percentage:", coverage_percentage)
|
print("coverage_percentage:", coverage_percentage)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(e)
|
print(e)
|
||||||
|
|
Loading…
Reference in New Issue