SUnit should have this methods for years

Alexandre


On 10 Apr 2009, at 21:06, Oscar Nierstrasz wrote:

>
> Hi folks,
>
> 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?
>
> - on
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>

-- 
_,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:
Alexandre Bergel  http://www.bergel.eu
^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;._,.;:~^~:;.






_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to