[squeak-dev] BlockContextTest >> #testNew

Frank Shearar frank.shearar at gmail.com
Thu Jan 9 13:30:51 UTC 2014


testNew
    self should: [ContextPart new: 5] raise: Error.
    [ContextPart new: 5]
        ifError: [:error :receiver | error = 'Error: Contexts must
only be created with newForMethod:'].
    [ContextPart new]
        ifError: [:error :receiver | error = 'Error: Contexts must
only be created with newForMethod:'].
    [ContextPart basicNew]
        ifError: [:error :receiver | error = 'Error: Contexts must
only be created with newForMethod:'].

Surely those "error = " lines need asserts?

frank


More information about the Squeak-dev mailing list