Esempio n. 1
0
 def test_min_area_2(self):
     p1 = lab_quiz.Point(2,3)
     c1 = lab_quiz.Circle(p1,8)
     p2 = lab_quiz.Point(4,7)
     c2 = lab_quiz.Circle(p2,2)
     self.assertEqual(lab_quiz.min_area(c1, c2),c2.center)
Esempio n. 2
0
 def test_min_area_1(self):
     p1 = lab_quiz.Point(1,1)
     c1 = lab_quiz.Circle(p1,3)
     p2 = lab_quiz.Point(2,2)
     c2 = lab_quiz.Circle(p2,4)
     self.assertEqual(lab_quiz.min_area(c1, c2),c1.center)
Esempio n. 3
0
 def test_min_area_1(self):
     circle1 = lab_quiz.Circle(12,20)
     circle2 = lab_quiz.Circle(1,2)
     tcircle = lab_quiz.Circle(12,20)
     lab_quiz.Circle.__eq__(lab_quiz.min_area(circle1,circle2),tcircle)
Esempio n. 4
0
 def test_min_area_2(self):
     circle1 = lab_quiz.Circle(40,30)
     circle2 = lab_quiz.Circle(3,4)
     tcircle = lab_quiz.Circle(40,30)
     lab_quiz.Circle.__eq__(lab_quiz.min_area(circle1,circle2),tcircle)
Esempio n. 5
0
 def test_min_area_2(self):
     circle1 = lab_quiz.Circle(2,2)
     circle2 = lab_quiz.Circle(80,80)
     tcircle = lab_quiz.Circle(80,80)
     lab_quiz.Circle.__eq__(lab_quiz.min_area(circle1,circle2),tcircle)