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