The Trunk: KernelTests-ct.385.mcz

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

The Trunk: KernelTests-ct.385.mcz

commits-2
Eliot Miranda uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-ct.385.mcz

==================== Summary ====================

Name: KernelTests-ct.385
Author: ct
Time: 22 August 2020, 8:20:01.189378 pm
UUID: 7b38e1cc-215c-8446-999e-0b702ed39766
Ancestors: KernelTests-eem.384

Test copying of the dependents array

Complements Kernel-ct.1338. For more details, see http://forum.world.st/Bug-in-copy-td5120761.html.

=============== Diff against KernelTests-eem.384 ===============

Item was changed:
  SystemOrganization addCategory: #'KernelTests-Classes'!
  SystemOrganization addCategory: #'KernelTests-Methods'!
  SystemOrganization addCategory: #'KernelTests-Numbers'!
  SystemOrganization addCategory: #'KernelTests-Objects'!
  SystemOrganization addCategory: #'KernelTests-Processes'!
  SystemOrganization addCategory: #'KernelTests-WriteBarrier'!
+ SystemOrganization addCategory: #'KernelTests-Models'!

Item was added:
+ TestCase subclass: #ModelTest
+ instanceVariableNames: ''
+ classVariableNames: ''
+ poolDictionaries: ''
+ category: 'KernelTests-Models'!

Item was added:
+ ----- Method: ModelTest>>testCopyDependents (in category 'tests') -----
+ testCopyDependents
+
+ | bar foo |
+ foo := Model new.
+ foo addDependent: 42.
+ self assert: {42} equals: foo dependents asArray.
+
+ bar := foo copy.
+ self assert: bar dependents isEmpty.!

Item was added:
+ ----- Method: ObjectTest>>testCopyDependents (in category 'tests') -----
+ testCopyDependents
+
+ | bar foo |
+ foo := Object new.
+ foo addDependent: 42.
+ self assert: {42} equals: foo dependents asArray.
+
+ bar := foo copy.
+ self assert: bar dependents isEmpty.!