Example #1
0
 def test_equal_1(self):
     self.assertEqual(sorted(two_sum([1, 2, 3], 4)), [0, 2])
Example #2
0
 def test_equal_2(self):
     self.assertEqual(sorted(two_sum([1234, 5678, 9012], 14690)), [1, 2])
Example #3
0
 def test_equal_3(self):
     self.assertEqual(sorted(two_sum([2, 2, 3], 4)), [0, 1])