Nicolas Cellier uploaded a new version of ShoutTests to project The Trunk: http://source.squeak.org/trunk/ShoutTests-nice.27.mcz
==================== Summary ====================
Name: ShoutTests-nice.27 Author: nice Time: 7 April 2019, 2:43:38.674687 pm UUID: 3f8b54af-406e-40fe-9666-d3101106a25f Ancestors: ShoutTests-ul.26
Expression like 1to:-1 are valid Smalltalk syntax, even without spaces. Document that with a shout test.
Note that Shout currently refuses this syntax. This works with a space after the colon
1to: -1
=============== Diff against ShoutTests-ul.26 ===============
Item was added: + ----- Method: SHParserST80Test>>testNegativeNumberWithoutSpace (in category 'tests') ----- + testNegativeNumberWithoutSpace + | types tokens s | + s := 'x 1to:-1'. + types := self tokenTypesIn: s. + tokens := self tokensIn: s. + self assert: types = #(#patternUnary #number #keyword #- #number). + self assert: tokens = #('x' '1' 'to:' '-' '1').!
packages@lists.squeakfoundation.org