[Pharo-project] About testing that ensure works
Henrik Sperre Johansen
henrik.s.johansen at veloxit.no
Tue Apr 26 15:11:01 CEST 2011
On 24.04.2011 12:05, Stéphane Ducasse wrote:
>> i am puzzled. You wanna to be sure that ensure block are executed?
>> It is.
> I want to write a test that shows and tests the withOrganizer:do: semantics.
> In particular that the ensure is executed and that the context set by the withOrganizer: is only present
> in the do: block.
In other words, another use case probably written more cleanly using the
Announcer >> #suspend: subscriber while: aBlock
More information about the Pharo-project