Exploration Through ExampleExample-driven development, Agile testing, context-driven testing, Agile programming, Ruby, and other things of interest to Brian Marick
|
Wed, 05 Oct 2005I've become fond of FitLibrary's CalculateFixture. The second table below is an example:
The columns to the left of the blank column are input values. Those to the right are expected results. The blank column is a nice visual separator. Each line of a table should be easy to understand. Sometimes that means annotation. I've hacked my copy of CalculateFixture to allow notes after yet another blank column. Like this:
That's easily done in the 9Feb2005 version. In
And remove an error check in
I'd like to see this change become part of FitLibrary. It cannot break existing tables (because of the error check). The error check would no longer catch mistakes in the table, but I can't see such a mistake lasting past the first time someone tried to make the test pass. It would be easy enough to change the error check to take blank columns into account, but I doubt I'd bother. |
|