We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d947902 commit 0389e2dCopy full SHA for 0389e2d
1 file changed
src/Containers-KeyedTree-Tests/CTKeyedTreeTest.class.st
@@ -215,6 +215,25 @@ CTKeyedTreeTest >> testCopy [
215
self assert: (c includesKey: #new)
216
]
217
218
+{ #category : 'tests' }
219
+CTKeyedTreeTest >> testDeepCopyStateNotShared [
220
+ | original clone |
221
+ original := CTKeyedTree new
222
+ at: #config put: (CTKeyedTree new
223
+ at: #color put: 'red';
224
+ yourself);
225
+ yourself.
226
+
227
+ clone := original copy.
228
229
+ (clone at: #config) at: #color put: 'blue'.
230
231
+ self assert: (original atPath: #(config color)) equals: 'red'.
232
+ self assert: (clone atPath: #(config color)) equals: 'blue'.
233
234
+ self deny: (original at: #config) == (clone at: #config).
235
+]
236
237
{ #category : 'tests' }
238
CTKeyedTreeTest >> testDepth [
239
0 commit comments