Skip to content

Modularise calculation code #2

@adcwilliams

Description

@adcwilliams

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.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions