mirror of
				https://gitlab.crans.org/bde/nk20
				synced 2025-11-04 01:12:08 +01:00 
			
		
		
		
	[WEI] Allow a tolerance of 25 %
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
		@@ -102,6 +102,6 @@ class TestWEIAlgorithm(TestCase):
 | 
			
		||||
            max_score = buses[0][1]
 | 
			
		||||
            penalty += (max_score - score) ** 2
 | 
			
		||||
 | 
			
		||||
            self.assertLessEqual(max_score - score, 20)  # Always less than 20 % of tolerance
 | 
			
		||||
            self.assertLessEqual(max_score - score, 25)  # Always less than 25 % of tolerance
 | 
			
		||||
 | 
			
		||||
        self.assertLessEqual(penalty / 100, 25)  # Tolerance of 5 %
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user