[Pkg] The Trunk: Tests-eem.372.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Mar 30 19:52:34 UTC 2017


Eliot Miranda uploaded a new version of Tests to project The Trunk:
http://source.squeak.org/trunk/Tests-eem.372.mcz

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

Name: Tests-eem.372
Author: eem
Time: 30 March 2017, 12:52:24.488537 pm
UUID: 601d9b7e-c9b0-4c2f-b22a-dae01b776c61
Ancestors: Tests-eem.371

Remove an explcit reference to ContextPart in the compiler tests.

=============== Diff against Tests-eem.371 ===============

Item was changed:
  ----- Method: ContextCompilationTest>>testVariablesAndOffsetsDo (in category 'tests') -----
  testVariablesAndOffsetsDo
  
  	"ContextCompilationTest new testVariablesAndOffsetsDo"
  	| contextClasses |
+ 	contextClasses := thisContext class withAllSuperclasses, thisContext class allSubclasses asArray.
- 	contextClasses := ContextPart withAllSuperclasses, ContextPart allSubclasses asArray.
  	contextClasses do:
  		[:class|
  		class variablesAndOffsetsDo:
  			[:var :offset|
  			self assert: offset < 0.
  			self assert: (class instVarNameForIndex: offset negated) == var]].
  
  	InstructionStream withAllSuperclasses, InstructionStream allSubclasses asArray do:
  		[:class|
  		(contextClasses includes: class) ifFalse:
  			[class variablesAndOffsetsDo:
  				[:var :offset|
  				(InstructionStream instVarNames includes: var) ifFalse:
  					[self assert: offset > 0.
  					 self assert: (class instVarNameForIndex: offset) == var]]]]!



More information about the Packages mailing list