@ -0,0 +1,3 @@
import math
def rad2deg(radNumber):
return (radNumber * 180) / math.pi
@ -0,0 +1,20 @@
import unittest
from src.main.py.trigonometry import *
class MyTestCase(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
def test_rad_2_to_deg_should_be_114_point_59(self):
delta = rad2deg(2) - 114.59
if delta < 0:
delta *= -1
self.assertLess(delta, 0.01)
if __name__ == '__main__':
unittest.main()