[Pkg] The Trunk: Tests-eem.81.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue May 25 03:03:59 UTC 2010
Andreas Raab uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-eem.81.mcz
==================== Summary ====================
Name: Tests-eem.81
Author: eem
Time: 22 May 2010, 10:45:06.967 am
UUID: 0452f6cc-7439-4792-9ace-76f6ca4287a2
Ancestors: Tests-spd.80
ClosureTests: Add a test that checks that a temp in an inlined block is nil at the start of each iteration of the loop. Needs Compiler-ar.141 (and perhaps a recompile) to pass.
=============== Diff against Tests-spd.80 ===============
Item was added:
+ ----- Method: ClosureTests>>testWhileWithTempIsNil (in category 'testing-while') -----
+ testWhileWithTempIsNil
+ | index |
+ index := 0.
+ [ index < 5 ] whileTrue: [
+ | temp |
+ collection add: temp.
+ temp := index := index + 1.
+ collection add: temp].
+ self assertValues: #(nil 1 nil 2 nil 3 nil 4 nil 5)!
More information about the Packages
mailing list