The Trunk: ShoutTests-ct.31.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: ShoutTests-ct.31.mcz

commits-2
Levente Uzonyi uploaded a new version of ShoutTests to project The Trunk:
http://source.squeak.org/trunk/ShoutTests-ct.31.mcz

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

Name: ShoutTests-ct.31
Author: ct
Time: 28 September 2019, 11:54:07.31477 pm
UUID: 2f971ebd-b9c3-6c44-9257-acb9d275aa7c
Ancestors: ShoutTests-ul.29

Regression test for bug fixed in ShoutCore-ct.73

=============== Diff against ShoutTests-ul.29 ===============

Item was added:
+ ----- 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 := 't1.t2.t3.t4'.
+
+ parser := SHParserST80 new.
+ ranges := parser rangesIn: dependentSource classOrMetaClass: nil workspace: nil environment: nil context: context.
+ types := ranges collect: #type as: Array.
+ self
+ assert: #(methodArg statementSeparator tempVar statementSeparator methodArg statementSeparator tempVar)
+ equals: types.!