The Inbox: CollectionsTests-ct.315.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: CollectionsTests-ct.315.mcz

commits-2
A new version of CollectionsTests was added to project The Inbox:
http://source.squeak.org/inbox/CollectionsTests-ct.315.mcz

==================== Summary ====================

Name: CollectionsTests-ct.315
Author: ct
Time: 15 August 2019, 12:59:08.885584 am
UUID: 5f1086d6-166e-e04c-9e8b-eb14136a5528
Ancestors: CollectionsTests-pre.314

Test #collectAll: from Collections-ct.850

=============== Diff against CollectionsTests-pre.314 ===============

Item was added:
+ ----- Method: OrderedCollectionTest>>testCollectAll (in category 'tests - enumerating') -----
+ testCollectAll
+ "Allows one to collect all simply nested elements of a collection into a set"
+ "self run: #testCollectAll"
+
+ | c1 c2 res |
+ c1 := #((-1 2) (-3 4) (-5 6)) asOrderedCollection.
+ c2 := #(1 2 3 4 5 6) asSet.
+ res := c1 collectAll: [:each | each abs].
+ self assert: (c2 = res).!