> OK, have posted issue 939 and will post the change shortly ... > > http://code.google.com/p/pharo/issues/detail?id=939 > > TestCase>>assert: actual equals: expected > actual = expected ifFalse: [self signalFailure: 'Assertion failed. > Expected: ' , expected printString > , '; got: ' , actual printString] > > Is it better to send asString or printString?
printString I imagine. > > - on > > On 7 Jul 2009, at 17:11, Stéphane Ducasse wrote: > >> please go ahead. >> I thought we got assert:equals: >> >> >> Somebody should also have a look at SUnitExtensions one of these >> days. >> >> On Jul 7, 2009, at 3:58 PM, Oscar Nierstrasz wrote: >> >>> >>> Hi Folks, >>> >>> I seem to recall that we added TestCase>>assert:eauals: to SUnit, >>> but >>> now I cannot find it. >>> >>> It would be really useful to get decent error messages from equality >>> tests (instead of "test failed", we would get "expected X but got >>> Y"). >>> >>> Does anyone know what the story is? >>> >>> If it exists somewhere, I would like to add it to Pharo. >>> >>> If it doesn't exist anywhere, I would like to add it to Pharo. >>> >>> - on >>> >>> >>> _______________________________________________ >>> Pharo-project mailing list >>> [email protected] >>> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project >> >> >> _______________________________________________ >> Pharo-project mailing list >> [email protected] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [email protected] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [email protected] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
