0
0
Fork 0

Fix bug 533

Bug533-Yuyikai
余忆开 2024-06-03 11:43:56 +08:00
parent 4d9cc1fe08
commit 4be8ff75f8
1 changed files with 0 additions and 2 deletions

View File

@ -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)