The Trunk: CollectionsTests-ael.187.mcz

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

The Trunk: CollectionsTests-ael.187.mcz

commits-2
Frank Shearar uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/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@0.
+ dict2 := Dictionary newFrom: dict1.
+ dict2 at: #one put: 'bar'.
+
+ self assert: (dict1 at: #one) = 'foo'.
+ !