def test_1(self):
     self.assertEqual( collinear1(0,0,1,0,100000,1),-1)
     self.assertEqual( collinear2(0,0,1,0,100000,1),-1)
     self.assertEqual( collinear3(0,0,1,0,100000,1),-1)
 def test_5(self):
     self.assertEqual( collinear1(0,0,1,0,2,0),-1)
     self.assertEqual( collinear2(0,0,1,0,2,0),-1)
     self.assertEqual( collinear3(0,0,1,0,2,0),-1)
 def test_6(self):
     self.assertEqual( collinear1(0,0,100,0,200,0),-1)
     self.assertEqual( collinear2(0,0,100,0,200,0),-1)
     self.assertEqual( collinear3(0,0,100,0,200,0),-1)
 def test_3(self):
     self.assertEqual( collinear1(0,0,0,0,0,1),1)
     self.assertEqual( collinear2(0,0,0,0,0,1),1)
     self.assertEqual( collinear3(0,0,0,0,0,1),1)
 def test_4(self):
     self.assertEqual( collinear1(0,0,3,3,5,5),1)
     self.assertEqual( collinear2(0,0,3,3,5,5),1)
     self.assertEqual( collinear3(0,0,3,3,5,5),1)
Пример #6
0
 def test_1(self):
     self.assertEqual(collinear1(0, 0, 1, 0, 100000, 1), -1)
     self.assertEqual(collinear2(0, 0, 1, 0, 100000, 1), -1)
     self.assertEqual(collinear3(0, 0, 1, 0, 100000, 1), -1)
Пример #7
0
 def test_6(self):
     self.assertEqual(collinear1(0, 0, 100, 0, 200, 0), -1)
     self.assertEqual(collinear2(0, 0, 100, 0, 200, 0), -1)
     self.assertEqual(collinear3(0, 0, 100, 0, 200, 0), -1)
Пример #8
0
 def test_5(self):
     self.assertEqual(collinear1(0, 0, 1, 0, 2, 0), -1)
     self.assertEqual(collinear2(0, 0, 1, 0, 2, 0), -1)
     self.assertEqual(collinear3(0, 0, 1, 0, 2, 0), -1)
Пример #9
0
 def test_4(self):
     self.assertEqual(collinear1(0, 0, 3, 3, 5, 5), 1)
     self.assertEqual(collinear2(0, 0, 3, 3, 5, 5), 1)
     self.assertEqual(collinear3(0, 0, 3, 3, 5, 5), 1)
Пример #10
0
 def test_3(self):
     self.assertEqual(collinear1(0, 0, 0, 0, 0, 1), 1)
     self.assertEqual(collinear2(0, 0, 0, 0, 0, 1), 1)
     self.assertEqual(collinear3(0, 0, 0, 0, 0, 1), 1)