|
@ -27,6 +27,8 @@ class calculationsWithRoots(unittest.TestCase): |
|
|
def test_sqrt_16_to_power_of_point5_should_be_2(self): |
|
|
def test_sqrt_16_to_power_of_point5_should_be_2(self): |
|
|
self.assertEqual(sqrt_power(16, 0.5), 2) |
|
|
self.assertEqual(sqrt_power(16, 0.5), 2) |
|
|
|
|
|
|
|
|
|
|
|
def test_sqrt_16_to_power_of_0_should_be_1(self): |
|
|
|
|
|
self.assertEqual(sqrt_power(16, 0), 1) |
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
if __name__ == '__main__': |
|
|
unittest.main() |
|
|
unittest.main() |