Exemplo n.º 1
0
 def test_sum_interval_another_example(self):
     sample_list = [1, 2, 3, 4, 5, 6]
     total = sum_interval(sample_list, 0, 1)
     self.assertEqual(total, 3)
Exemplo n.º 2
0
 def test_sum_interval_another_example(self):
     sample_list = [1, 2, 3, 4, 5, 6]
     total = sum_interval(sample_list, 0, 1)
     self.assertEqual(total, 3)
Exemplo n.º 3
0
 def test_sum_interval(self):
     sample_list = [1, 2, 3, 4]
     total = sum_interval(sample_list, 0, 2)
     self.assertEqual(total, 6)
Exemplo n.º 4
0
 def test_sum_interval(self):
     sample_list = [1, 2, 3, 4]
     total = sum_interval(sample_list, 0, 2)
     self.assertEqual(total, 6)