tribler.test_unit.core.database.test_ranks
Classes
Tests for the ranking logic. |
Module Contents
- class tribler.test_unit.core.database.test_ranks.TestRanks
Bases:
ipv8.test.base.TestBaseTests for the ranking logic.
- test_torrent_rank_exact_match() None
Test if an exact title match leads to a score of exactly 0.81.
This is 90% (no seeders/leechers) of 90% (no freshness) of an exact match score of 1.
- test_torrent_rank_intermediate() None
Test if word matches are preferred with less words in between.
- test_torrent_rank_mis_position_one() None
Test if word matches are preferred with mismatches further on in the item.
- test_torrent_rank_mis_position_many() None
Test if word group matches are preferred with mismatches further on in the item.
- test_torrent_rank_reorder() None
Test if wrong order of words in the title imposes a penalty to the rank.
- test_find_word_skip_one() None
Test if the number of skipped words is returned correctly when skipping over one.