|
@ -15,6 +15,9 @@ class MyTestCase(unittest.TestCase): |
|
|
delta *= -1 |
|
|
delta *= -1 |
|
|
self.assertLess(delta, 0.01) |
|
|
self.assertLess(delta, 0.01) |
|
|
|
|
|
|
|
|
|
|
|
def test_pi_precision_negative_10_should_be_negative_1_for_error(self): |
|
|
|
|
|
self.assertEqual(pi_approx_leibniz(-10), -1) |
|
|
|
|
|
|
|
|
def test_rad_2_to_deg_should_be_114_point_59(self): |
|
|
def test_rad_2_to_deg_should_be_114_point_59(self): |
|
|
delta = rad2deg(2) - 114.59 |
|
|
delta = rad2deg(2) - 114.59 |
|
|
if delta < 0: |
|
|
if delta < 0: |
|
|