@ -13,3 +13,6 @@ def pi_approx_leibniz(precision):
def rad2deg(radNumber):
return (radNumber * 180) / math.pi
def sin_approx_bhaskara(radNumber):
return radNumber
@ -36,6 +36,9 @@ class MyTestCase(unittest.TestCase):
delta *= -1
self.assertLess(delta, 0.01)
def test_sin_0_should_be_0(self):
self.assertEqual(sin_approx_bhaskara(0), 0)
if __name__ == '__main__':
unittest.main()