The following is a TDD Kata, an exercise in coding, test-first and refactoring.
- Try not to read ahead.
- Do one task at a time.
Create a simple Calculator application accessible via HTTP.
- Choose whatever technology you prefer.
- Choose whatever API format you prefer.
- Try to use tdd while implementing the functionality or at least test first every functionality you add.
- Write unit and end to end tests
Implement the following operations between two numbers:
- Addition (e.g. 2+2=4)
- Subtraction (e.g. 2-3=-1)
- Multiplication (e.g. 2*2=4)
- Division (e.g. 5/3=1 remainder 2)