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