0

blog.ploeh.dk · 10d · discuss

A testing dead end that felt appropriate at the time. This article is one of a series on finding properties for a budgeting kata. I expect you to have read the previous articles in the series. As I often do when I do katas, I imposed some constraints in addition to 'just' solving the problem. I wanted to do test-driven development (TDD) with QuickCheck properties taking the place of individual test cases. I also desired to identify 'mathematical' or computer-science-like properties instead of (which is much easier) 'examples on steroids'. All this made me add the next property although, should...