1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-08-03 14:16:54 +02:00

Permissions

This commit is contained in:
Ehouarn
2025-08-03 00:41:10 +02:00
parent cf53b480db
commit 312ab6dac4
4 changed files with 25 additions and 18 deletions

View File

@@ -113,10 +113,6 @@ class TestWEIAlgorithm(TestCase):
max_score_words = max(buses[i][1][1] for i in range(len(buses)))
penalty += (max_score_words - score_words) ** 2
penalty += (max_score_questions - score_questions) ** 2
self.assertLessEqual(max_score_questions - score_questions, 3)
self.assertLessEqual(max_score_words - score_words, 2.5)
self.assertLessEqual(penalty / 100, 25) # Tolerance of 5 %
# There shouldn't be users who would prefer to switch buses