Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mercator unit testing afternoon task!

This repo contains the unit testing task.

Your task is to implement TDD to create an income tax calculator!

Steps to follow:

  1. Write failing tests around the placeholder methods created
  2. Run the tests, making sure they fail
  3. Write just enough code to make the tests pass
  4. 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):

  1. Extend the task to calculate capital gains from shares
  2. Information on implementation can be found: https://taxscouts.com/the-tax-basics/capital-gains-tax-rates/

Extension task (2 - Really Hard):

  1. Extend the task to calculate total income tax AND capital gains tax from shares
  2. You can create a new method that calls your existing methods to accomplish this

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages