This repo contains the unit testing task.
Your task is to implement TDD to create an income tax calculator!
Steps to follow:
- Write failing tests around the placeholder methods created
- Run the tests, making sure they fail
- Write just enough code to make the tests pass
- Refactor the code to make it cleaner and more readable
To run the tests, you can use the green play button in your Spec, or in terminal, run:
sbt test
Extension task (1 - Hard):
- Extend the task to calculate capital gains from shares
- Information on implementation can be found: https://taxscouts.com/the-tax-basics/capital-gains-tax-rates/
Extension task (2 - Really Hard):
- Extend the task to calculate total income tax AND capital gains tax from shares
- You can create a new method that calls your existing methods to accomplish this