From 058035d95b4b8e36420cee1b4437f0ea88c459d8 Mon Sep 17 00:00:00 2001 From: fdai7783 Date: Thu, 18 Jan 2024 22:09:49 +0100 Subject: [PATCH] Added another test for subtraction 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 19f8749..be74b1d 100644 --- a/src/test/py/test_primitive_calculations.py +++ b/src/test/py/test_primitive_calculations.py @@ -24,6 +24,9 @@ class primitive_calculations(unittest.TestCase): def test_subtract_5_minus_5_equals_0(self): self.assertEqual(subract(5, 5), 0) + def test_subtract_minus_5_minus_minus_5_equals_0(self): + self.assertEqual(subract(-5, -5), 0) + if __name__ == "__main__": unittest.main()