def test_length1(self): A = [222] self.assertEqual(solution.jump(A), 0)
def test_empty(self): A = [] self.assertEqual(solution.jump(A), 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)
def test_input_impossible(self): A = [2,1,0,0,0,0,0,0,0,0,0,0] self.assertEqual(solution.jump(A), -1)
def test_input_all_1(self): A = [1,1,1,1,1,1,1] self.assertEqual(solution.jump(A), 6)
def test_input_2_1(self): A = [2,1] self.assertEqual(solution.jump(A), 1)