[squeak-dev] The Inbox: CollectionsTests-pre.260.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Feb 26 15:06:36 UTC 2016


A new version of CollectionsTests was added to project The Inbox:
http://source.squeak.org/inbox/CollectionsTests-pre.260.mcz

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

Name: CollectionsTests-pre.260
Author: pre
Time: 26 February 2016, 4:05:48.618127 pm
UUID: 0174d1fb-e34c-4fdf-8b6f-a4235161ca06
Ancestors: CollectionsTests-mt.259

Test for Collections-pre.679

=============== Diff against CollectionsTests-mt.259 ===============

Item was added:
+ ----- Method: CollectionTest>>testAsymmetricPairsDo (in category 'tests') -----
+ testAsymmetricPairsDo
+ 	| fixture |
+ 	fixture := #(1 2 3).
+ 	{OrderedCollection newFrom: fixture. Set newFrom: fixture.} do:
+ 		[ :coll |
+ 		| result |
+ 		result := OrderedCollection new.
+ 		coll asymmetricPairsDo: [:a :b | result add: {a . b}].
+ 		self assert: result size = 3.
+ 		
+ 		coll add: 4.
+ 		result := OrderedCollection new.
+ 		coll asymmetricPairsDo: [:a :b | result add: {a . b}].
+ 		self assert: result size = 6.].!



More information about the Squeak-dev mailing list