From bf0e99170f90cab35998e8c255d3dbef4d3e20f2 Mon Sep 17 00:00:00 2001 From: fdai7783 Date: Thu, 18 Jan 2024 22:25:15 +0100 Subject: [PATCH] Added another unittest to test multiplication functionality --- src/test/py/test_primitive_calculations.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/test/py/test_primitive_calculations.py b/src/test/py/test_primitive_calculations.py index 741ed23..33f81ae 100644 --- a/src/test/py/test_primitive_calculations.py +++ b/src/test/py/test_primitive_calculations.py @@ -30,6 +30,9 @@ class primitive_calculations(unittest.TestCase): def test_multiply_5_multiply_5_equals_25(self): self.assertEqual(multiply(5, 5), 25) + def test_multiply_5_multiply_5_equals_5(self): + self.assertEqual(multiply(-5, -5), 25) + if __name__ == "__main__": unittest.main()