Browse Source

Added another test for subtraction functionality

remotes/origin/feature/feature-primitive-calculations
fdai7783 11 months ago
parent
commit
058035d95b
  1. 3
      src/test/py/test_primitive_calculations.py

3
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): def test_subtract_5_minus_5_equals_0(self):
self.assertEqual(subract(5, 5), 0) 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__": if __name__ == "__main__":
unittest.main() unittest.main()
Loading…
Cancel
Save