def test_input_2(self): num = [-2] self.assertEqual(solution.maxProduct(num), (-2))
def test_input_1(self): num = [2, 1] self.assertEqual(solution.maxProduct(num), (2))
def test_input_6(self): num = [2, 1, 0, 2, -2] self.assertEqual(solution.maxProduct(num), (2))
def test_input_7(self): num = [0.2, 1] self.assertEqual(solution.maxProduct(num), (1))
def test_input_4(self): num = [2, 1, -2, 2, -2] self.assertEqual(solution.maxProduct(num), (16))