The Trunk: ShoutTests-ul.28.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-ul.28.mcz

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

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

Name: ShoutTests-ul.28
Author: ul
Time: 17 July 2019, 10:08:28.846351 am
UUID: 7203daa9-c4eb-448e-9688-64df19446f88
Ancestors: ShoutTests-nice.27

- some tests for parsing temporary variable lists

=============== Diff against ShoutTests-nice.27 ===============

Item was added:
+ ----- Method: SHParserST80Test>>testEmptyBlockTempList (in category 'tests') -----
+ testEmptyBlockTempList
+
+ | types tokens s |
+ s := 'x [ || ]'.
+ types := self tokenTypesIn: s.
+ tokens := self tokensIn: s.
+ self assert: types = #(patternUnary blockStart blockTempBar blockTempBar blockEnd).
+ self assert: tokens = #('x' '[' '|' '|' ']').!

Item was added:
+ ----- Method: SHParserST80Test>>testEmptyMethodTempList (in category 'tests') -----
+ testEmptyMethodTempList
+
+ | types tokens s |
+ s := 'x ||'.
+ types := self tokenTypesIn: s.
+ tokens := self tokensIn: s.
+ self assert: types = #(patternUnary methodTempBar methodTempBar).
+ self assert: tokens = #('x' '|' '|').!

Item was added:
+ ----- Method: SHParserST80Test>>testMissingVerticalBarAfterBlockArguments (in category 'tests') -----
+ testMissingVerticalBarAfterBlockArguments
+
+ | types tokens s |
+ s := 'x [ :x x ]'.
+ types := self tokenTypesIn: s.
+ tokens := self tokensIn: s.
+ self assert: types = #(patternUnary blockStart blockArgColon blockPatternArg excessCode).
+ self assert: tokens = #('x' '[' ':' 'x' ' x ]').!