[squeak-dev] The Inbox: CollectionsTests-cmm.312.mcz
commits at source.squeak.org
commits at source.squeak.org
Tue Jun 4 20:32:13 UTC 2019
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'.!
More information about the Squeak-dev
mailing list
|