[squeak-dev] The Inbox: CollectionsTests-cmm.312.mcz
asqueaker at gmail.com
Tue Jun 4 21:55:05 UTC 2019
Okay. Fixed in CollectionsTests-cmm.313.mcz.
On Tue, Jun 4, 2019 at 4:13 PM Nicolas Cellier
<nicolas.cellier.aka.nice at gmail.com> wrote:
> 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:
>> ==================== 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'.!
More information about the Squeak-dev