Code examples for the article Real-World Test-Driven Development.
Each example is organized by pull request. It is recommended to follow the commit history chronologically to see the full process of practicing Test-Driven Development (TDD). Moreover, the GitHub Actions status of each commit is intended to illustrate the rhythm of TDD, which involves adding a test that fails first, and then coding to make it pass.
MIT License © 2025 Cyan Ho (pilagod).