From 4d181f438cf7b9ecfdc6b08b24f2de1171d96c30 Mon Sep 17 00:00:00 2001 From: fdai7783 Date: Thu, 18 Jan 2024 20:59:32 +0100 Subject: [PATCH] Added another test for addition 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 a9d77c9..8d29175 100644 --- a/src/test/py/test_primitive_calculations.py +++ b/src/test/py/test_primitive_calculations.py @@ -15,6 +15,9 @@ class primitive_calculations(unittest.TestCase): def test_add_minus_5_plus_minus_5_equals_10(self): 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__": unittest.main()