Yes, that's why I asked Eliot about the case of ClassVariables.
mmmm sorry, that was in a private email.
Don't worry, I will take care about testIsClean


On Wed, May 2, 2012 at 4:45 PM, Stéphane Ducasse
<[email protected]>wrote:

>
>
> Begin forwarded message:
>
> *From: *[email protected]
> *Subject: **Fwd: [squeak-dev] The Trunk: Tests-eem.151.mcz*
> *Date: *April 30, 2012 6:48:05 PM GMT+02:00
> *To: *[email protected]
>
> You are not allowed to post to this mailing list, and your message has
> been automatically rejected.  If you think that your messages are
> being rejected in error, contact the mailing list owner at
> [email protected].
>
>
> *From: *stephane ducasse <[email protected]>
> *Subject: **Fwd: [squeak-dev] The Trunk: Tests-eem.151.mcz*
> *Date: *April 30, 2012 12:42:55 PM GMT+02:00
> *To: *Pharo Development <[email protected]>
>
>
>
>
> Begin forwarded message:
>
> From: [email protected]
>
> Subject: [squeak-dev] The Trunk: Tests-eem.151.mcz
>
> Date: April 26, 2012 7:02:28 PM GMT+02:00
>
> To: [email protected],
> [email protected]
>
> Reply-To: [email protected]
>
>
> Eliot Miranda uploaded a new version of Tests to project The Trunk:
>
> http://source.squeak.org/trunk/Tests-eem.151.mcz
>
>
> ==================== Summary ====================
>
>
> Name: Tests-eem.151
>
> Author: eem
>
> Time: 26 April 2012, 12:02:22.807 pm
>
> UUID: d1afe8a4-9721-4e74-a3f3-b2fc1057d51b
>
> Ancestors: Tests-ul.150
>
>
> Add tests for BlockClosure>isClean
>
>
> =============== Diff against Tests-ul.150 ===============
>
>
> Item was added:
>
> + ----- Method: ClosureTests>>testIsClean (in category 'testing') -----
>
> + testIsClean
>
> + | local |
>
> + local := #testIsClean.
>
> +
>
> + self assert: [] isClean. "closes over nothing at all"
>
> + self assert: [:a :b| a < b] isClean. "accesses only arguments"
>
> + self assert: [:a :b| | s | s := a + b. s even] isClean. "accesses only
> local variables"
>
> +
>
> + self deny: [^nil] isClean. "closes over home (^-return)"
>
> + self deny: [self] isClean. "closes over the receiver"
>
> + self deny: [collection] isClean. "closes over the receiver (to access
> the inst var collection)"
>
> + self deny: [local] isClean. "closes over local variable of outer
> context"!
>
>
>
>
>
>
>
>
>


-- 
Mariano
http://marianopeck.wordpress.com

Reply via email to