[squeak-dev] The Trunk: KernelTests-ct.410.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Nov 25 10:57:36 UTC 2021


Christoph Thiede uploaded a new version of KernelTests to project The Trunk:
http://source.squeak.org/trunk/KernelTests-ct.410.mcz

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

Name: KernelTests-ct.410
Author: ct
Time: 25 November 2021, 11:57:10.610633 am
UUID: 38dd07bd-928a-a24f-b3d3-eab992734a0a
Ancestors: KernelTests-mt.408, KernelTests-ct.388

Merges and revises KernelTests-ct.388 (simulator tests for #doesNotUnderstand:).

=============== Diff against KernelTests-mt.408 ===============

Item was added:
+ ----- Method: ContextTest>>testMessageNotUnderstood (in category 'tests') -----
+ testMessageNotUnderstood
+ 
+ 	"A simulation error (recursive message not understood) occurs that cannot be handled by the simulated code"
+ 	self
+ 		should:
+ 			[Context runSimulated:
+ 				[[TestEmptyClass new foo]
+ 					on: Error do: [:ex | ex]]]
+ 		raise: Error.
+ 	
+ 	"The simulator sends #doesNotUnderstand: to the receiver even if the lookup class has no superclass."
+ 	self assert:
+ 		[Context runSimulated:
+ 			[self
+ 				executeShould: [ProtoObject new foo]
+ 				inScopeOf: MessageNotUnderstood]].
+ 	self assert:
+ 		[Context runSimulated:
+ 			[self
+ 				executeShould: [Compiler evaluate: 'super foo' for: Object new]
+ 				inScopeOf: MessageNotUnderstood]].!

Item was added:
+ nil subclass: #TestEmptyClass
+ 	instanceVariableNames: ''
+ 	classVariableNames: ''
+ 	poolDictionaries: ''
+ 	category: 'KernelTests-Methods'!
+ 
+ !TestEmptyClass commentStamp: 'ct 11/25/2021 11:49' prior: 0!
+ I do not even understand #doesNotUnderstand:!! Sending any non-inlined message to me should crash the executor.!



More information about the Squeak-dev mailing list