コード例 #1
0
 def test_atask5_1(self):
     result = search_consecutive_set_of_numbers([1, 6, 43, 65, 3, 5], 7)
     self.assertEqual([0, 1], result)
コード例 #2
0
 def test_atask5_5(self):
     result = search_consecutive_set_of_numbers(
         [8, 12, 9, 32, 3, 2, 1, 89, 21], 92)
     self.assertEqual([5, 7], result)
コード例 #3
0
 def test_atask5_3(self):
     result = search_consecutive_set_of_numbers([1, 2, 3], 7)
     self.assertEqual('Sum was not found', result)
コード例 #4
0
 def test_atask5_4(self):
     result = search_consecutive_set_of_numbers([5, 5, 5, 5, 5, 5, 5, 5, 5],
                                                45)
     self.assertEqual([0, 8], result)
コード例 #5
0
 def test_atask5_2(self):
     result = search_consecutive_set_of_numbers([2, 6, 43, 65, 3, 5], 7)
     self.assertEqual('Sum was not found', result)