Exemple #1
0
 def test_equals(self):
     self.assertEqual(sum_consecutives([1, 4, 4, 4, 0, 4, 3, 3, 1]),
                      [1, 12, 0, 4, 6, 1])
Exemple #2
0
 def test_equals_3(self):
     self.assertEqual(sum_consecutives([-5, -5, 7, 7, 12, 0]),
                      [-10, 14, 12, 0])
Exemple #3
0
 def test_equals_4(self):
     self.assertEqual(sum_consecutives([3, 3, 3, 3, 1]), [12, 1])
Exemple #4
0
 def test_equals_2(self):
     self.assertEqual(sum_consecutives([1, 1, 7, 7, 3]), [2, 14, 3])