Tom White understands literate programming
Written on 12 May 2006
Tom White shows that he understands the descriptive aspects of what we were trying to do with jMock
Filed in: Agile Programming.
Steve Freeman
Working software daily
Written on 12 May 2006
Tom White shows that he understands the descriptive aspects of what we were trying to do with jMock
Filed in: Agile Programming.
Comments closed
When you read his examples the “eq” seems very hacky and bends the literate approach out of shape a bit.
Why not add an extra method named something resembling “islike” as a synonym for the horrible eq, then you can say:
assertThat(a, islike(”3″));
or
assertThat( theEndResult, islike( theDesiredExample ));
More literate, hmm?
Tom White’s Blog: Literate Programming with jMock
Tom White’s Blog: Literate Programming with jMock: ” Posted by tomwhite on May 11, 2006 at 11:10 AM We’ve been using jMock at our company for some time now. We’ve found it great for test driven development and isolating our unit tests from the rest of the