Example #1
0
 def test_split_far(self):
     assert (angle.close(-math.pi, math.pi - 1.0, 0.5) == False)
Example #2
0
 def test_wrap_far(self):
     assert (angle.close(0., 2 * math.pi + 0.1, 0.05) == False)
Example #3
0
 def test_smoke_far(self):
     assert (angle.close(0., 2., 1.0) == False)
Example #4
0
 def test_threshold_flip_far(self):
     assert (angle.close(1., 0., 0.5) == False)
Example #5
0
 def test_wrap(self):
     assert (angle.close(0, 2 * math.pi, 0.01) == True)
Example #6
0
 def test_split(self):
     assert (angle.close(-math.pi, math.pi - 0.1, 0.1) == True)
Example #7
0
 def test_threshold_flip(self):
     assert (angle.close(1., 0., 1.) == True)
Example #8
0
 def test_threshold(self):
     assert (angle.close(0., 1., 1.) == True)
Example #9
0
 def test_smoke(self):
     assert (angle.close(0.0, 0.0, 1.0)) == True