[squeak-dev] The Trunk: CollectionsTests-nice.105.mcz
commits at source.squeak.org
commits at source.squeak.org
Fri Oct 30 19:37:37 UTC 2009
Nicolas Cellier uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-nice.105.mcz
==================== Summary ====================
Name: CollectionsTests-nice.105
Author: nice
Time: 30 October 2009, 8:37:29 am
UUID: da5471af-f76d-4ca5-ae29-9a60cdaaee33
Ancestors: CollectionsTests-ar.104
Test #isSelfEvaluating a bit deeper
=============== Diff against CollectionsTests-ar.104 ===============
Item was changed:
----- Method: AssociationTest>>testIsSelfEvaluating (in category 'tests') -----
testIsSelfEvaluating
+ | anotherAssociation |
self
+ assert: (a isSelfEvaluating).
+ anotherAssociation := Object new -> Object new.
+ anotherAssociation isSelfEvaluating ifTrue: [self
+ assert: (Compiler evaluate: anotherAssociation printString) = anotherAssociation
+ description: 'a self evaluating should evaluate as self'].!
- assert: (a isSelfEvaluating)
- !
Item was added:
+ ----- Method: RunArrayTest>>testIsSelfEvaluating (in category 'tests - instance creation') -----
+ testIsSelfEvaluating
+ | array array2 |
+ array := RunArray new: 5 withAll: 2.
+ self assert: array isSelfEvaluating.
+ array2 := RunArray new: 5 withAll: Object new.
+ array2 isSelfEvaluating ifTrue: [self
+ assert: (Compiler evaluate: array2 printString) = array2
+ description: 'a self evaluating should evaluate as self'].!
More information about the Squeak-dev
mailing list
|