[Pkg] The Trunk: ShoutTests-ct.32.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Oct 2 12:41:54 UTC 2019

Levente Uzonyi uploaded a new version of ShoutTests to project The Trunk:

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

Name: ShoutTests-ct.32
Author: ct
Time: 2 October 2019, 2:11:16.386339 pm
UUID: bfb233d2-c00e-be47-bdee-f59d3a0687e6
Ancestors: ShoutTests-ct.31

Refines and extends #testContextDependentStyling

Thanks to Levente!

=============== Diff against ShoutTests-ct.31 ===============

Item was changed:
  ----- Method: SHParserST80Test>>testContextDependentStyling (in category 'tests') -----
  	| context contextSource dependentSource parser ranges types |
  	contextSource := '[:t1| |t2| [:t3| |t4| thisContext copy] value: 7] value: 6'.
  	context := Compiler evaluate: contextSource.
+ 	dependentSource := 'foo t1.t2.t3.t4'.
- 	dependentSource := 't1.t2.t3.t4'.
  	parser := SHParserST80 new.
+ 	parser parseAMethod: true.
  	ranges := parser rangesIn: dependentSource classOrMetaClass: nil workspace: nil environment: nil context: context.
  	types := ranges collect: #type as: Array.
+ 		assert: #(patternUnary blockArg statementSeparator blockTempVar statementSeparator blockArg statementSeparator blockTempVar)
- 		assert: #(methodArg statementSeparator tempVar statementSeparator methodArg statementSeparator tempVar)
  		equals: types.!

More information about the Packages mailing list