Exemple #1
0
 def test_list_1_return_0_0(self):
     sample_list = [1]
     response = find_largest_sum(sample_list)
     self.assertEqual(response, (0, 0))
Exemple #2
0
 def test_list_1_return_0_0(self):
     sample_list = [1]
     response = find_largest_sum(sample_list)
     self.assertEqual(response, (0, 0))
Exemple #3
0
 def test_list_negative_numbers(self):
     sample_list = [-1]*10
     begin, end = find_largest_sum(sample_list)
     self.assertEqual(begin, end)
Exemple #4
0
 def test_list_negative_numbers(self):
     sample_list = [-1] * 10
     begin, end = find_largest_sum(sample_list)
     self.assertEqual(begin, end)