Login  Register

Re: TestCase question

Posted by Sven Van Caekenberghe on Apr 13, 2011; 9:01am
URL: https://forum.world.st/TestCase-question-tp3445764p3446639.html


On 13 Apr 2011, at 10:00, Marcus Denker wrote:

> I like this method:
>
> mystery
> 'mystery' isString ifTrue: ['mystery'   become: {0}].
> 'mystery'  at: 1 put: 'mystery'  first + 1.
> ^ 'mystery' first.

And you were trying to help newcomers or scare them off ? ;-)

This is actually a problem in many languages.
It is always better to not touch literals (constants is a dangerour word here).