Example #1
0
 def testVectorLength(self):
     assert 10 == norm_vector([6, 8])
     assert self.float_comparasion(4.219, norm_vector([2.2, 3.6]), 0.001)
     assert self.float_comparasion(5.280, norm_vector([-4.8, -2.2]), 0.001)
Example #2
0
 def testVectorLength(self):
     assert 10 == norm_vector([6, 8]);
     assert self.float_comparasion(4.219, norm_vector([2.2, 3.6]), 0.001);
     assert self.float_comparasion(5.280, norm_vector([-4.8, -2.2]), 0.001);