[squeak-dev] The Inbox: CollectionsTests-cmm.312.mcz

Nicolas Cellier nicolas.cellier.aka.nice at gmail.com
Tue Jun 4 21:12:56 UTC 2019


Note that joined='a|a|a' would pass the test. A longer joined too.

Le mar. 4 juin 2019 à 22:32, <commits at source.squeak.org> a écrit :

> Chris Muller uploaded a new version of CollectionsTests to project The
> Inbox:
> http://source.squeak.org/inbox/CollectionsTests-cmm.312.mcz
>
> ==================== Summary ====================
>
> Name: CollectionsTests-cmm.312
> Author: cmm
> Time: 4 June 2019, 3:32:07.434178 pm
> UUID: b63a7b5c-085b-4479-bc8d-8910d2afeeaf
> Ancestors: CollectionsTests-mt.311
>
> Additional test for #joinSeparatedBy: describes the expected behavior for
> unordered collections.
>
> =============== Diff against CollectionsTests-mt.311 ===============
>
> Item was added:
> + ----- Method: CollectionTest>>testJoin (in category 'tests') -----
> + testJoin
> +       | joined |
> +       self assert: #(a b c d e) join = 'abcde'.
> +       self assert: (#(a b c) joinSeparatedBy: '|') = 'a|b|c'.
> +       joined := (#(a b c) asSet) joinSeparatedBy: '|'.
> +       self assert: (#(2 4) allSatisfy: [ : index | (joined at: index) =
> $| ]).
> +       self assert: (#(1 3 5) allSatisfy: [ : index | 'abc' includes:
> (joined at: index) ])!
>
> Item was removed:
> - ----- Method: SequenceableCollectionTest>>testJoin (in category 'tests -
> converting') -----
> - testJoin
> -
> -       self assert: #(a b c d e) join = 'abcde'.
> -       self assert: (#(a b c) joinSeparatedBy: '|') = 'a|b|c'.!
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190604/35be77bc/attachment.html>


More information about the Squeak-dev mailing list