[squeak-dev] The Trunk: KernelTests-pre.411.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Dec 1 13:59:29 UTC 2021
Patrick Rein uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-pre.411.mcz
==================== Summary ====================
Name: KernelTests-pre.411
Author: pre
Time: 1 December 2021, 2:59:24.70697 pm
UUID: 9f32b7e6-180b-9546-bff8-6c26eb483605
Ancestors: KernelTests-ct.410
Adds two tests for #evaluate:wheneverChangIn: and thereby also for ObjectViewer.
=============== Diff against KernelTests-ct.410 ===============
Item was added:
+ ----- Method: ObjectTest>>testEvaluateWheneverChangeIn (in category 'tests - debugging') -----
+ testEvaluateWheneverChangeIn
+
+ | counter instance target |
+ instance := Object new.
+ counter := 0.
+ target := #notExecuted.
+ instance
+ evaluate: [target := #executed]
+ wheneverChangeIn: [counter].
+ counter := counter + 1.
+
+ instance name.
+
+ self assert: #executed equals: target.!
Item was added:
+ ----- Method: ObjectTest>>testEvaluateWheneverChangeInTransparent (in category 'tests - debugging') -----
+ testEvaluateWheneverChangeInTransparent
+
+ | instance |
+ instance := Object new.
+ instance
+ evaluate: []
+ wheneverChangeIn: [].
+ self assert: instance yourself == instance.!
More information about the Squeak-dev
mailing list
|