def test_containment_equal_circles(self): "if two circles are equal one contains the other and vice versa" circ1 = Circle() circ2 = Circle() self.assertTrue(circ1.contains_circle(circ2)) self.assertTrue(circ2.contains_circle(circ1))
def test_containing_circles(self): "test circle containment" circ1 = Circle() circ2 = Circle(Vec2D(), 0.5) self.assertTrue(circ1.contains_circle(circ2)) self.assertFalse(circ2.contains_circle(circ1))
def test_containment_equal_circles(self): "if two circles are equal one contains the other and vice versa" circ1 = Circle() circ2 = Circle() self.assertTrue(circ1.contains_circle(circ2)) self.assertTrue(circ2.contains_circle(circ1))
def test_containing_circles(self): "test circle containment" circ1 = Circle() circ2 = Circle(Vec2D(), 0.5) self.assertTrue(circ1.contains_circle(circ2)) self.assertFalse(circ2.contains_circle(circ1))
def test_contains_impl_intersects(self): "containment implies intersection" circ1 = Circle() circ2 = Circle(Vec2D(), 0.5) self.assertTrue(circ1.contains_circle(circ2)) self.assertTrue(circ1.intersects(circ2)) self.assertTrue(circ2.intersects(circ1))
def test_contains_impl_intersects(self): "containment implies intersection" circ1 = Circle() circ2 = Circle(Vec2D(), 0.5) self.assertTrue(circ1.contains_circle(circ2)) self.assertTrue(circ1.intersects(circ2)) self.assertTrue(circ2.intersects(circ1))