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

Frank Shearar frank.shearar at gmail.com
Fri Jul 20 20:18:11 UTC 2012


On 20 July 2012 19:54,  <commits at source.squeak.org> wrote:
> A new version of Tests was added to project The Inbox:
> http://source.squeak.org/inbox/Tests-cwp.150.mcz
>
> ==================== Summary ====================
>
> Name: Tests-cwp.150
> Author: cwp
> Time: 20 July 2012, 11:54:47.516 am
> UUID: f3c34eb2-640c-4252-8da9-e6a1677d8ce0
> Ancestors: Tests-bp.149
>
> Introduced EnvironmentTest.
>
> =============== Diff against Tests-bp.149 ===============
<snip>
> Item was added:
> + ----- Method: EnvironmentTest>>testUndeclaredBindingMoved (in category 'binding tests') -----
> + testUndeclaredBindingMoved
> +       | assoc |
> +       assoc := env bindingOf: #Griffle.
> +       env at: #Griffle put: value.
> +       self assert: (env at: #Griffle) == value!

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?

frank


More information about the Squeak-dev mailing list