示例#1
0
 def test_gift_wrapping_2d_single(self):
     output = convex_hull.gift_wrapping_2d([(0, 0)]);
     self.assertEqual(output, [(0, 0)])
示例#2
0
 def test_gift_wrapping_2d(self):
     output = convex_hull.gift_wrapping_2d(self.input_2d)
     self.assertEqual(sorted(output), sorted(self.expected_2d))
示例#3
0
 def test_gift_wrapping_2d_empty(self):
     output = convex_hull.gift_wrapping_2d([]);
     self.assertEqual(output, [])