Tom White shows that he understands the descriptive aspects of what we were trying to do with jMock
Posted by stevef at May 12, 2006 10:28 AMWhen 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?
Posted by: Frank Carver at May 12, 2006 2:07 PM