An example of test-driven design

I was involved in a discussion about test-driven design and property-based testing as design tools. I wrote some code in TDD style. Since this for a discussion about design, I took notes for each step and wrote them up as a narrative. Code for comparing TDD to Property-Based Testing

I’ve been doing TDD for 20 years, and it’s not a bad shortish example of the practice. It’s not idealized, so there are mistakes and bad decisions and cleanup. Here’s the table of contents: