|
@ -15,6 +15,9 @@ class calculationsWithRoots(unittest.TestCase): |
|
|
def test_sqrt_2_times_sqrt_8_should_be_4(self): |
|
|
def test_sqrt_2_times_sqrt_8_should_be_4(self): |
|
|
self.assertEqual(multiplyRoots(2, 8), 4) |
|
|
self.assertEqual(multiplyRoots(2, 8), 4) |
|
|
|
|
|
|
|
|
|
|
|
def test_sqrt_negative_2_times_sqrt_negative_8_should_be_negative_one_for_error(self): |
|
|
|
|
|
self.assertEqual(multiplyRoots(-2, -8), -1) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == '__main__': |
|
|
if __name__ == '__main__': |
|
|
unittest.main() |
|
|
unittest.main() |