def test_point_containment(self): "test point inside circle" point = Vec2D() circle = Circle() self.assertTrue(circle.contains_point(point))
def test_point_on_border(self): "test point exactly on circle border" point = Vec2D(1, 0) circle = Circle() self.assertTrue(circle.contains_point(point))
def test_point_not_inside(self): "test point not inside circle" point = Vec2D(2, 0) circle = Circle() self.assertFalse(circle.contains_point(point))