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

commits at source.squeak.org commits at source.squeak.org
Fri May 31 11:52:36 UTC 2019


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

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

Name: CollectionsTests-ct.298
Author: ct
Time: 31 May 2019, 1:52:34.276053 pm
UUID: 717b8c7c-d8cb-4541-9d60-3cb8814d4097
Ancestors: CollectionsTests-ul.297

Test Collection>>asStringByDelimiter (cf. Collections, ct.827)

=============== Diff against CollectionsTests-ul.297 ===============

Item was added:
+ ----- Method: CollectionTest>>testAsStringByDelimiter (in category 'testing') -----
+ testAsStringByDelimiter
+ 	| delimiter |
+ 	delimiter := ' +++ '.
+ 	{OrderedCollection new. Set new.} do:
+ 		[ :coll |
+ 		self assert: (coll asStringByDelimiter: delimiter) = ''.
+ 
+ 		coll add: 1.
+ 		self assert: (coll asStringByDelimiter: delimiter) = '1'.
+ 
+ 		coll add: 2; add: 3.
+ 		self assert: (coll asStringByDelimiter: delimiter) = '1 +++ 2 +++ 3'].!



More information about the Squeak-dev mailing list