Issue 6047 in pharo: testisclean

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue 6047 in pharo: testisclean

pharo
Status: FixToInclude
Owner: [hidden email]
Labels: Type-Bug Milestone-2.0

New issue 6047 by [hidden email]: testisclean
http://code.google.com/p/pharo/issues/detail?id=6047

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"

in pharoInbox CompilerTests-sd.109

Stef


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6047 in pharo: testisclean

pharo

Comment #1 on issue 6047 by marianopeck: testisclean
http://code.google.com/p/pharo/issues/detail?id=6047

Of course, in BlockClosureTest


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6047 in pharo: testisclean

pharo

Comment #2 on issue 6047 by [hidden email]: testisclean
http://code.google.com/p/pharo/issues/detail?id=6047

There is also ClosureTests so I put it there.


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker
Reply | Threaded
Open this post in threaded view
|

Re: Issue 6047 in pharo: testisclean

pharo
Updates:
        Status: Closed

Comment #3 on issue 6047 by [hidden email]: testisclean
http://code.google.com/p/pharo/issues/detail?id=6047

in 20116


_______________________________________________
Pharo-bugtracker mailing list
[hidden email]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-bugtracker