|
@ -21,6 +21,9 @@ class calculationsWithRoots(unittest.TestCase): |
|
|
def test_sqrt_4_to_power_of_3_should_be_8(self): |
|
|
def test_sqrt_4_to_power_of_3_should_be_8(self): |
|
|
self.assertEqual(sqrt_power(4, 3), 8) |
|
|
self.assertEqual(sqrt_power(4, 3), 8) |
|
|
|
|
|
|
|
|
|
|
|
def test_sqrt_negative_4_to_power_of_3_should_be_negative_one_for_error(self): |
|
|
|
|
|
self.assertEqual(sqrt_power(-4, 3), -1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
if __name__ == '__main__': |
|
|
unittest.main() |
|
|
unittest.main() |