[squeak-dev] assert:equals: in Object

Marcel Taeumel marcel.taeumel at hpi.de
Fri Oct 9 09:41:26 UTC 2020


Hi Eliot,

sure, SUnit could put those extensions into Object. I wouldn't want to have those outside SUnit, though. Not sure why. I only consider #assert: a useful tool even outside test cases. Just to document an invariant in a method.

Best,
Marcel
Am 09.10.2020 10:24:58 schrieb Eliot Miranda <eliot.miranda at gmail.com>:
Hi All,

    moving code from a test into a workspace and back is painful because Object does not implement assert:equals: or assert:equals:description: even though it implements assert:description:.  So one has to edit out the equals: moving to the workspace and edit it back in again on the way back.  I'd like to suggest implementing Object>>assert:equals: and Object>>assert:equals:description: but I won't, because someone is bound to criticise it as being too green or ill considered or some other depressing BS.
_,,,^..^,,,_

best, Eliot
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20201009/2128d2d0/attachment.html>


More information about the Squeak-dev mailing list