The Inbox: CollectionsTests-pre.260.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-pre.260.mcz

commits-2
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.].!