[squeak-dev] The Inbox: Tests-cwp.150.mcz

Colin Putney colin at wiresong.com
Fri Jul 20 20:46:34 UTC 2012


On Fri, Jul 20, 2012 at 1:18 PM, Frank Shearar <frank.shearar at gmail.com> wrote:
> I don't understand this test: it shows you can read to / write from
> the env, but shouldn't you be doing something with assoc? How are you
> testing Undeclaredness here?

Oh, yeah, that should just be deleted. When I was originally writing
Environment, I thought that SystemDictionary handled all the logic
around Undeclared - putting the binding in Undeclared when it couldn't
be found, moving it to the right place when it was later declared,
etc. I wrote some tests to ensure that Environment would handle it
correctly. But then I discovered that this logic is actually
elsewhere, and forgot to remove the tests. I think this test was going
to prove that #bindingOf: answered the same association regardless of
whether the variable was declared. Doesn't matter anymore.

Colin


More information about the Squeak-dev mailing list