Пример #1
0
 def test_perpendicular(self):
     for tup in self.init_value:
         checked_vector = Vector(tup)
         vector = checked_vector.perpendicular()
         self.assertAlmostEqual(-tup[1], vector.x)
         self.assertAlmostEqual(tup[0], vector.y)