[squeak-dev] The Trunk: Collections-ct.1012.mcz

Taeumel, Marcel Marcel.Taeumel at hpi.de
Tue Jun 21 07:00:20 UTC 2022


Please just implement middle for your test only and let us discuss this after the release.

Best,
Marcel
________________________________
From: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> on behalf of Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de>
Sent: Monday, June 20, 2022 7:18:57 PM
To: The general-purpose Squeak developers list <squeak-dev at lists.squeakfoundation.org>
Subject: Re: [squeak-dev] The Trunk: Collections-ct.1012.mcz


> We already have #atRandom for Collection. Is that not adequate for your needs?

Not really, because non-reproducible (smoke) tests are an anti-pattern. Yes, I could hardcode a random seed, but this is all more complicated than #middle. :D

Best,
Christoph

________________________________
Von: Squeak-dev <squeak-dev-bounces at lists.squeakfoundation.org> im Auftrag von tim Rowledge <tim at rowledge.org>
Gesendet: Montag, 20. Juni 2022 18:38:34
An: The general-purpose Squeak developers list
Betreff: Re: [squeak-dev] The Trunk: Collections-ct.1012.mcz



> On 2022-06-20, at 5:50 AM, Thiede, Christoph <Christoph.Thiede at student.hpi.uni-potsdam.de> wrote:
>
> When I send #middle, I think of #anyOneAboutInTheMiddle. I used this in a few scripts where I wanted to get a sample that is neither from the beginning nor from the end of the collection.

We already have #atRandom for Collection. Is that not adequate for your needs?


tim
--
tim Rowledge; tim at rowledge.org; http://www.rowledge.org/tim
Dreams are free, but you get soaked on the connect time.



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20220621/3c154f3c/attachment.html>


More information about the Squeak-dev mailing list