Example #1
0
 def test_set_length(self):
     for tup in self.set_value:
         checked_vector = Vector(5, 5)
         checked_vector.length = tup
         self.assertAlmostEqual(tup, sqrt(checked_vector.x ** 2 + checked_vector.y ** 2))