Browse Source

Added one test and basic addition functionality to fulfill it

remotes/origin/feature/feature-primitive-calculations
fdai7783 11 months ago
parent
commit
23f163cc48
  1. 2
      src/main/py/primitive_calculations.py
  2. 17
      src/test/py/test_primitive_calculations.py

2
src/main/py/primitive_calculations.py

@ -0,0 +1,2 @@
def add(first_number, second_number):
return first_number + second_number

17
src/test/py/test_primitive_calculations.py

@ -0,0 +1,17 @@
import unittest
from src.main.py.primitive_calculations import *
class primitive_calculations(unittest.TestCase):
def setUp(self):
pass
def tearDown(self):
pass
def test_add_5_plu_5_equals_10(self):
self.assertEqual(add(5, 5), 10)
if __name__ == "__main__":
unittest.main()
Loading…
Cancel
Save