Motivation
The current calc.py code is functional but static and hard to test. As the first step towards including new features we need to move the calculation code into a separate module, leaving the main program simply for input and output. The modules can then contain specific unit tests.
Objective
- Move calculation code into module.
- Add appropriate unit test for the existing addition function.
Motivation
The current
calc.pycode is functional but static and hard to test. As the first step towards including new features we need to move the calculation code into a separate module, leaving the main program simply for input and output. The modules can then contain specific unit tests.Objective