|
|
@ -21,6 +21,9 @@ class calculationsWithRoots(unittest.TestCase): |
|
|
|
def test_divide_sqrt_16_by_sqrt_4_should_be_2(self): |
|
|
|
self.assertEqual(divideRoots(16,4), 2) |
|
|
|
|
|
|
|
def test_divide_sqrt_negative_16_by_sqrt_negative_4_should_be_negative_1_for_error(self): |
|
|
|
self.assertEqual(divideRoots(-16,-4), -1) |
|
|
|
|
|
|
|
def test_sqrt_4_to_power_of_3_should_be_8(self): |
|
|
|
self.assertEqual(sqrt_power(4, 3), 8) |
|
|
|
|
|
|
|