[squeak-dev] The Trunk: Tests-fbs.285.mcz

Colin Putney colin at wiresong.com
Thu Jan 9 14:13:10 UTC 2014


On Thu, Jan 9, 2014 at 8:03 AM, Frank Shearar <frank.shearar at gmail.com>wrote:

> > Item was changed:
> >   ----- Method: EnvironmentTest>>testUndeclare (in category 'binding
> tests') -----
> >   testUndeclare
> >         | one two |
> >         one := env undeclare: #Griffle.
> >         two := env bindingOf: #Griffle.
> > +       self assert: two equals: one description: '#bindingOf: value
> doesn''t match that returned by #undeclare'.
> > -       self assert: one == two description: '#bindingOf: value doesn''t
> match that returned by #undeclare'.
> >         self assert: Global equals: one class description: 'Type of
> binding'.
> >         self assert: nil equals: one value description: 'Value of
> binding'.!
>
> This test checks, among other things, that the binding of an
> undeclared thing is the same object as the object you got back when
> you undeclared it.
>
> That's not true at the moment: if you undeclare Griffle, #undeclare:
> returns the binding, and #bindingOf: then returns nil.
>

Right. #bindingOf: should return nil. The test is wrong.

But... I swear I changed that test.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20140109/fc5ac270/attachment.htm


More information about the Squeak-dev mailing list