Beispiel #1
0
 def test_find_closest_4(self):
     val = find_closest([0, 0], [[1000, 1000]])
     self.assertEqual(val, [1000, 1000])
Beispiel #2
0
 def test_find_closest_2(self):
     val = find_closest([1, 6], [[1, 5], [3, 3]])
     self.assertEqual(val, [1, 5])
Beispiel #3
0
 def test_find_closest_3(self):
     val = find_closest([0, 0], [[-2, 0], [2, 0]])
     self.assertEqual(val, [-2, 0])
Beispiel #4
0
 def test_find_closest_1(self):
     val = find_closest([6, 1], [[1, 5], [3, 3]])
     self.assertEqual(val, [3, 3])