We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0389e2d commit e31b3b8Copy full SHA for e31b3b8
2 files changed
src/Containers-KeyedTree-Tests/CTKeyedTreeTest.class.st
@@ -226,6 +226,10 @@ CTKeyedTreeTest >> testDeepCopyStateNotShared [
226
227
clone := original copy.
228
229
+ "Verify they have equal values but are different objects in memory before mutation"
230
+ self assert: original equals: clone.
231
+ self deny: original == clone.
232
+
233
(clone at: #config) at: #color put: 'blue'.
234
235
self assert: (original atPath: #(config color)) equals: 'red'.
src/Containers-KeyedTree/CTKeyedTree.class.st
@@ -484,8 +484,7 @@ CTKeyedTree >> postCopy [
484
485
super postCopy.
486
self keysAndValuesDo: [ :key :value |
487
- (value isKindOf: self class)
488
- ifTrue: [ self at: key put: value copy ] ]
+ self at: key put: value copy ]
489
]
490
491
{ #category : 'printing' }
0 commit comments