Exemplo n.º 1
0
 def test_both_negative(self):
     self.assertEqual(-2, solution('-2,-3'))
Exemplo n.º 2
0
 def test_a_negative_in_between(self):
     self.assertEqual(2, solution('1,-1,2'))
Exemplo n.º 3
0
 def test_a_negative_second(self):
     self.assertEqual(2, solution('2,-3'))
Exemplo n.º 4
0
 def test_a_negative_first(self):
     self.assertEqual(3, solution('-2,3'))
Exemplo n.º 5
0
 def test_plain(self):
     self.assertEqual(5, solution('2,3'))
Exemplo n.º 6
0
 def test_provided_2(self):
     self.assertEqual(12, solution('2,3,-2,-1,10'))
Exemplo n.º 7
0
 def test_provided_1(self):
     self.assertEqual(8, solution('-10,2,3,-2,0,5,-15'))