예제 #1
0
파일: chaos_test.py 프로젝트: redmice/hr
 def test_no_bribes(self):
     input = [1, 2, 3, 4, 5, 6, 7, 8]
     result = chaos.minimum_bribes(input)
     self.assertEqual(0, result)
예제 #2
0
파일: chaos_test.py 프로젝트: redmice/hr
 def test_3(self):
     input = [1, 2, 5, 3, 7, 8, 6, 4]
     result = chaos.minimum_bribes(input)
     self.assertEqual(7, result)
예제 #3
0
파일: chaos_test.py 프로젝트: redmice/hr
 def test_too_chaotic_2(self):
     input = [5, 1, 2, 3, 7, 8, 6, 4]
     result = chaos.minimum_bribes(input)
     self.assertEqual('Too chaotic', result)
예제 #4
0
파일: chaos_test.py 프로젝트: redmice/hr
 def test_2(self):
     input = [2, 1, 5, 3, 4]
     result = chaos.minimum_bribes(input)
     self.assertEqual(3, result)
예제 #5
0
파일: chaos_test.py 프로젝트: redmice/hr
 def test_too_chaotic(self):
     input = [2, 5, 1, 3, 4]
     result = chaos.minimum_bribes(input)
     self.assertEqual('Too chaotic', result)
예제 #6
0
파일: chaos_test.py 프로젝트: redmice/hr
 def test_1(self):
     input = [1, 2, 3, 5, 4, 6, 7, 8]
     result = chaos.minimum_bribes(input)
     self.assertEqual(1, result)