|
@ -15,6 +15,9 @@ class primitive_calculations(unittest.TestCase): |
|
|
def test_add_minus_5_plus_minus_5_equals_10(self): |
|
|
def test_add_minus_5_plus_minus_5_equals_10(self): |
|
|
self.assertEqual(add(-5, -5), -10) |
|
|
self.assertEqual(add(-5, -5), -10) |
|
|
|
|
|
|
|
|
|
|
|
def test_add_5_plus_minus_5_equls_0(self): |
|
|
|
|
|
self.assertEqual(add(5, -5), 0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
if __name__ == "__main__": |
|
|
unittest.main() |
|
|
unittest.main() |