Пример #1
0
 def test_length1(self):
     A = [222]
     self.assertEqual(solution.jump(A), 0)
Пример #2
0
 def test_empty(self):
     A = []
     self.assertEqual(solution.jump(A), 0)
Пример #3
0
 def test_input_random(self):
     A = [7,0,9,6,9,6,1,7,9,0,1,2,9,0,3]
     self.assertEqual(solution.jump(A), 2)
Пример #4
0
 def test_input_impossible(self):
     A = [2,1,0,0,0,0,0,0,0,0,0,0]
     self.assertEqual(solution.jump(A), -1)
Пример #5
0
 def test_input_all_1(self):
     A = [1,1,1,1,1,1,1]
     self.assertEqual(solution.jump(A), 6)
Пример #6
0
 def test_input_2_1(self):
     A = [2,1]
     self.assertEqual(solution.jump(A), 1)