A new version of ShoutTests was added to project The Inbox:
http://source.squeak.org/inbox/ShoutTests-ct.32.mcz==================== 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') -----
testContextDependentStyling
| 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.
self
+ assert: #(patternUnary blockArg statementSeparator blockTempVar statementSeparator blockArg statementSeparator blockTempVar)
- assert: #(methodArg statementSeparator tempVar statementSeparator methodArg statementSeparator tempVar)
equals: types.!