[squeak-dev] The Inbox: CollectionsTests-ael.187.mcz
commits at source.squeak.org
commits at source.squeak.org
Mon Jul 30 21:41:11 UTC 2012
A new version of CollectionsTests was added to project The Inbox:
http://source.squeak.org/inbox/CollectionsTests-ael.187.mcz
==================== Summary ====================
Name: CollectionsTests-ael.187
Author: ael
Time: 30 July 2012, 2:40:57.923 pm
UUID: b4b909c2-e655-4b7e-94f8-0f5c40a227d0
Ancestors: CollectionsTests-ul.186
test case for isolation of dictionary created using newFrom:
=============== Diff against CollectionsTests-ul.186 ===============
Item was added:
+ ----- Method: DictionaryTest>>testNewFromIsolation (in category 'basic tests') -----
+ testNewFromIsolation
+ "self run:#testNewFromIsolation"
+ "self debug:#testNewFromIsolation"
+
+ | dict1 dict2 |
+ dict1 := Dictionary new.
+ dict1 at: #one put: 'foo'; at: #two put: 0 at 0.
+ dict2 := Dictionary newFrom: dict1.
+ dict2 at: #one put: 'bar'.
+
+ self assert: (dict1 at: #one) = 'foo'.
+ !
More information about the Squeak-dev
mailing list
|