예제 #1
0
파일: test.py 프로젝트: shz117/Leetcode
 def test_length1(self):
     A = [222]
     self.assertEqual(solution.jump(A), 0)
예제 #2
0
파일: test.py 프로젝트: shz117/Leetcode
 def test_empty(self):
     A = []
     self.assertEqual(solution.jump(A), 0)
예제 #3
0
파일: test.py 프로젝트: shz117/Leetcode
 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
파일: test.py 프로젝트: shz117/Leetcode
 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
파일: test.py 프로젝트: shz117/Leetcode
 def test_input_all_1(self):
     A = [1,1,1,1,1,1,1]
     self.assertEqual(solution.jump(A), 6)
예제 #6
0
파일: test.py 프로젝트: shz117/Leetcode
 def test_input_2_1(self):
     A = [2,1]
     self.assertEqual(solution.jump(A), 1)