A repo I'm using to demonstrate TDD technique.
My goal is to teach following TDD concepts:
- 3 rules of TDD
- Red-Green-Refactor
- The Single Assert Rule
- Arrange, Act, Assert Rule
- Principle: "As tests get more specific, code gets more generic"
- You can’t write any production code until you have first written a failing unit test.
- You can’t write more of a unit test than is sufficient to fail, and not compiling is failing.
- You can’t write more production code than is sufficient to pass the currently failing unit test.
Apart of 3 simple katas presented in this repo, there is a whole world of katas out there.
You can find my version of the solutions in the corresponding branch.
Note that every time you do katas, the solutions would be slightly different. That's the beauty of katas - you keep discovering new ways of solving the same problem.
- Coding Dojo
- TddBuddy
- About - Project Euler for math inclined problem.
- HackerRank for all kinds of problems.