|
@ -52,6 +52,12 @@ class MyTestCase(unittest.TestCase): |
|
|
delta *= -1 |
|
|
delta *= -1 |
|
|
self.assertLess(delta, 0.01) |
|
|
self.assertLess(delta, 0.01) |
|
|
|
|
|
|
|
|
|
|
|
def test_56_point_7_deg_to_rad_should_be_point99(self): |
|
|
|
|
|
delta = deg2rad(56.7) - 0.99 |
|
|
|
|
|
if delta < 0: |
|
|
|
|
|
delta *= -1 |
|
|
|
|
|
self.assertLess(delta, 0.01) |
|
|
|
|
|
|
|
|
def test_sin_0_should_be_0(self): |
|
|
def test_sin_0_should_be_0(self): |
|
|
self.assertEqual(sin_approx_bhaskara(0), 0) |
|
|
self.assertEqual(sin_approx_bhaskara(0), 0) |
|
|
|
|
|
|
|
|