Problems and solutions for TDD labs.
Currently we have the following labs:
- test-leapyear - Leap Year
- test-income-tax - Income tax calculator
- Develop iteratively
- Follow the TDD cycle of RED, GREEN, REFACTOR
- RED - Think of one simple example of how the system should be used
- GREEN - Add just enough code to make the test pass
- REFACTOR - Make the system code as well as tests easier to change.
- If working in a group or pairs, it's common for each participant to do a full TDD cycle, rotating after a failing test has been written.