[squeak-dev] The Trunk: CollectionsTests-mt.227.mcz

Frank Shearar frank.shearar at gmail.com
Wed Jan 14 12:11:18 UTC 2015


On 14 January 2015 at 11:48,  <commits at source.squeak.org> wrote:
> Marcel Taeumel uploaded a new version of CollectionsTests to project The Trunk:
> http://source.squeak.org/trunk/CollectionsTests-mt.227.mcz
>
> ==================== Summary ====================
>
> Name: CollectionsTests-mt.227
> Author: mt
> Time: 14 January 2015, 12:48:32.028 pm
> UUID: ba80ec03-2785-4642-9a8c-09ad419fe738
> Ancestors: CollectionsTests-mt.226
>
> Tests added for #join
>
> =============== Diff against CollectionsTests-mt.226 ===============
>
> Item was added:
> + ----- 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'.!
>
> Item was added:
> + ----- Method: SequenceableCollectionTest>>testSplitAndJoin (in category 'tests - converting') -----
> + testSplitAndJoin
> +
> +       self assert: (('a|b|c' splitBy: '|') joinSeparatedBy: '|') = 'a|b|c'.!

+1 to the feature!

I'd just add that using #assert:equals: gives better error messages:

    self assert: 'a|b|c' equals: (#(a b c) joinSeparatedBy: '|')

and so on.

frank


More information about the Squeak-dev mailing list