From 9bd17518a89e06ca2f42e1a8c8d8db60365ddbf8 Mon Sep 17 00:00:00 2001 From: fdai7783 Date: Thu, 18 Jan 2024 21:14:20 +0100 Subject: [PATCH] Added test for addition functionality to test addition of decimal numbers --- 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 8d29175..38f3cd6 100644 --- a/src/test/py/test_primitive_calculations.py +++ b/src/test/py/test_primitive_calculations.py @@ -18,6 +18,9 @@ class primitive_calculations(unittest.TestCase): def test_add_5_plus_minus_5_equls_0(self): self.assertEqual(add(5, -5), 0) + def test_add_1_dot_5_plus_1_dot_5_equals_3(self): + self.assertEqual(add(1.5, 1.5), 3) + if __name__ == "__main__": unittest.main()