Пример #1
0
 def test_case_10(self):
     self.assertEqual(
         smallestDifference(
             [10, 1000, 9124, 2142, 59, 24, 596, 591, 124, -123, 530],
             [-1441, -124, -25, 1014, 1500, 660, 410, 245, 530]),
         [530, 530])
Пример #2
0
 def test_case_1(self):
     self.assertEqual(
         smallestDifference([-1, 5, 10, 20, 3], [26, 134, 135, 15, 17]),
         [20, 17])
Пример #3
0
 def test_case_8(self):
     self.assertEqual(
         smallestDifference(
             [10, 1000],
             [-1441, -124, -25, 1014, 1500, 660, 410, 245, 530]),
         [1000, 1014])
Пример #4
0
 def test_case_7(self):
     self.assertEqual(smallestDifference([0, 20], [21, -2]), [20, 21])
Пример #5
0
 def test_case_6(self):
     self.assertEqual(
         smallestDifference([240, 124, 86, 111, 2, 84, 954, 27, 89],
                            [1, 3, 954, 19, 8]), [954, 954])
Пример #6
0
 def test_case_5(self):
     self.assertEqual(
         smallestDifference([10, 0, 20, 25, 2000],
                            [1005, 1006, 1014, 1032, 1031]), [2000, 1032])