<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jan 9, 2014 at 8:03 AM, Frank Shearar <span dir="ltr"><<a href="mailto:frank.shearar@gmail.com" target="_blank">frank.shearar@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Item was changed:<br>
> ----- Method: EnvironmentTest>>testUndeclare (in category 'binding tests') -----<br>
> testUndeclare<br>
> | one two |<br>
> one := env undeclare: #Griffle.<br>
> two := env bindingOf: #Griffle.<br>
> + self assert: two equals: one description: '#bindingOf: value doesn''t match that returned by #undeclare'.<br>
> - self assert: one == two description: '#bindingOf: value doesn''t match that returned by #undeclare'.<br>
> self assert: Global equals: one class description: 'Type of binding'.<br>
> self assert: nil equals: one value description: 'Value of binding'.!<br>
<br>
</div>This test checks, among other things, that the binding of an<br>
undeclared thing is the same object as the object you got back when<br>
you undeclared it.<br>
<br>
That's not true at the moment: if you undeclare Griffle, #undeclare:<br>
returns the binding, and #bindingOf: then returns nil.<br></blockquote><div><br></div><div>Right. #bindingOf: should return nil. The test is wrong. </div><div><br></div><div>But... I swear I changed that test.</div></div>
</div></div>