[squeak-dev] The Inbox: ShoutTests-ct.34.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Thu Nov 25 14:04:57 UTC 2021

Hi Christoph --

This also addresses ShoutCore-ct.85 sitting in the inbox.

The code snippet you want Shout to style is

x 1 positive; negative not

I don't see how this is valid Smalltalk code. Even like this

x := 1 positive; negative not

the trailing "not" cannot be compiled. Adding parentheses, it becomes valid:

x := (1 positive; negative) not.

...so can you elaborate on what you wanted to test here? I would expect that Shout's results for invalid Smalltalk code is ... undefined? 

Am 07.04.2021 17:20:24 schrieb commits at source.squeak.org <commits at source.squeak.org>:
A new version of ShoutTests was added to project The Inbox:

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

Name: ShoutTests-ct.34
Author: ct
Time: 7 April 2021, 5:20:15.847598 pm
UUID: a7f39f26-a6fb-f44e-aabb-931714b56ed8
Ancestors: ShoutTests-mt.33

Document a present bug that occurs when styling a method that contains multiple unary selectors after a cascade.

=============== Diff against ShoutTests-mt.33 ===============

Item was added:
+ ----- Method: SHParserST80Test>>testChainAfterCascade (in category 'tests') -----
+ testChainAfterCascade
+ | types s |
+ s := 'x 1 positive; negative not'.
+ types := self tokenTypesIn: s.
+ self
+ assert: #(patternUnary number unary cascadeSeparator unary excessCode)
+ equals: types.!

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20211125/6accd7e3/attachment.html>

More information about the Squeak-dev mailing list