Пример #1
0
 def test_list_list_range_14(self):
     res = twosum ([1001,5,1,7,6,9,0,6,8,10,11,12,13,14],1015)
     self.assertEqual(res,[0,13])
Пример #2
0
 def test_list_list_range_12(self):
     res = twosum ([2,5,1,7,6,9,0,6,8,10,11,12],15)
     self.assertEqual(res,[1,9])
Пример #3
0
 def test_list_list_range_13(self):
     res = twosum ([2,5,1,7,6,9,0,6,8,10,11,12,13,],25)
     self.assertEqual(res,[11,12])
Пример #4
0
 def test_list_list_range_10(self):
     res = twosum ([2,5,1,7,6,9,0,7,8,10],18)
     self.assertEqual(res,[8,9])
Пример #5
0
 def test_list_list_range_11(self):
     res = twosum ([2,5,1,7,6,9,0,6,8,10,11],21)
     self.assertEqual(res,[9,10])
Пример #6
0
 def test_list_list_range_8(self):
     res = twosum ([2,5,1,7,6,9,0,6],3)
     self.assertEqual(res,[0,2])
Пример #7
0
 def test_list_list_range_9(self):
     res = twosum ([2,5,1,7,6,9,0,9,8],15)
     self.assertEqual(res,[3,8])
Пример #8
0
 def test_list_list_range_7(self):
     res = twosum ([2,5,1,7,6,9,0],13)
     self.assertEqual(res,[3,4])
Пример #9
0
 def test_list_list_range_6(self):
     res = twosum ([2,5,1,7,8,9],6)
     self.assertEqual(res,[1,2])
Пример #10
0
 def test_list_list_range_5(self):
     res = twosum ([2,5,1,7,6],7)
     self.assertEqual(res,[0,1])
Пример #11
0
 def test_list_list_range_4(self):
     res = twosum ([2,5,1,7,],8)
     self.assertEqual(res,[2,3])
Пример #12
0
 def test_list_list_range_9(self):
     res = twosum ([22,53,1,7,6,11,0,66,8],15)
     self.assertEqual(res,[3,8])