|
@ -24,6 +24,12 @@ class MyTestCase(unittest.TestCase): |
|
|
delta *= -1 |
|
|
delta *= -1 |
|
|
self.assertLess(delta, 0.01) |
|
|
self.assertLess(delta, 0.01) |
|
|
|
|
|
|
|
|
|
|
|
def test_rad_negative_1_to_deg_should_be_negative_57_point_296(self): |
|
|
|
|
|
delta = rad2deg(-1) - -57.296 |
|
|
|
|
|
if delta < 0: |
|
|
|
|
|
delta *= -1 |
|
|
|
|
|
self.assertLess(delta, 0.01) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
if __name__ == '__main__': |
|
|
unittest.main() |
|
|
unittest.main() |