[squeak-dev] The Inbox: CollectionsTests-ct.315.mcz

commits at source.squeak.org commits at source.squeak.org
Wed Aug 14 22:59:10 UTC 2019


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).!



More information about the Squeak-dev mailing list