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

commits at source.squeak.org commits at source.squeak.org
Wed Jun 5 02:44:01 UTC 2019


Chris Muller uploaded a new version of CollectionsTests to project The Inbox:
http://source.squeak.org/inbox/CollectionsTests-cmm.315.mcz

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

Name: CollectionsTests-cmm.315
Author: cmm
Time: 4 June 2019, 9:43:59.205352 pm
UUID: cc64f404-61ff-4115-9768-f7fce040e98e
Ancestors: CollectionsTests-mt.311

More robust tests of #joinSeparatedBy:.

=============== Diff against CollectionsTests-mt.311 ===============

Item was added:
+ ----- Method: CollectionTest>>testJoin (in category 'tests') -----
+ testJoin
+ 	self assert: #(#a #b #c #d #e) join = 'abcde'.
+ 	self assert: (#(#a #b #c) joinSeparatedBy: '|') = 'a|b|c'.
+ 	#(#asArray #asOrderedCollection #asSet #asBag #asSortedArray #asSortedCollection) do:
+ 		[ : each | | joinedString joinedParts source |
+ 		source := #(#a #b #c #c #b #a #x #x #x #y #z #z #z #z #z '1' '22' '33' '33' '22' '1') perform: each.
+ 		joinedString := source joinSeparatedBy: '|'.
+ 		joinedParts := joinedString subStrings: '|'.
+ 		self assert: (joinedString subStrings: '|') sorted asArray = source sorted asArray ]!

Item was removed:
- ----- Method: SequenceableCollectionTest>>testJoin (in category 'tests - converting') -----
- testJoin
- 
- 	self assert: #(a b c d e) join = 'abcde'.
- 	self assert: (#(a b c) joinSeparatedBy: '|') = 'a|b|c'.!



More information about the Squeak-dev mailing list