April 10, 2009
7:34 p.m.
On Fri, Apr 10, 2009 at 9:06 PM, Oscar Nierstrasz <oscar@iam.unibe.ch> wrote:
90% of my tests just test equality of a result to an expected value, so I waste time trying to find out what the mismatch is. Â Would be nice to have this method in SUnit:
assert: result equals: expected  result = expected   ifFalse: [self signalFailure: 'Assertion failed: (' , result asString , ') ~= (' , expected asString , ')']
Does anyone see a downside, or possible improvements?
No, there is no downside and no possible improvement. All other xUnit frameworks have that for a long time. I think Keith's version of SUnit has that too. -- Damien Cassou http://damiencassou.seasidehosting.st