예제 #1
0
파일: test.py 프로젝트: shz117/Leetcode
 def test_input_2(self):
     num = [-2]
     self.assertEqual(solution.maxProduct(num), (-2))
예제 #2
0
파일: test.py 프로젝트: shz117/Leetcode
 def test_input_1(self):
     num = [2, 1]
     self.assertEqual(solution.maxProduct(num), (2))
예제 #3
0
파일: test.py 프로젝트: shz117/Leetcode
 def test_input_6(self):
     num = [2, 1, 0, 2, -2]
     self.assertEqual(solution.maxProduct(num), (2))
예제 #4
0
파일: test.py 프로젝트: shz117/Leetcode
 def test_input_7(self):
     num = [0.2, 1]
     self.assertEqual(solution.maxProduct(num), (1))
예제 #5
0
파일: test.py 프로젝트: shz117/Leetcode
 def test_input_4(self):
     num = [2, 1, -2, 2, -2]
     self.assertEqual(solution.maxProduct(num), (16))