mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	Permissions
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user