[Pkg] The Trunk: CollectionsTests-ar.150.mcz

commits at source.squeak.org commits at source.squeak.org
Sat Feb 27 21:35:43 UTC 2010


Andreas Raab uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ar.150.mcz

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

Name: CollectionsTests-ar.150
Author: ar
Time: 27 February 2010, 10:35:21.478 pm
UUID: 4bc98328-ab9c-e348-9af9-a2cc9f414a85
Ancestors: CollectionsTests-ul.149

Tests for splitBy:.


=============== Diff against CollectionsTests-ul.149 ===============

Item was added:
+ ----- Method: SequenceableCollectionTest>>testSplitBy (in category 'tests - converting') -----
+ testSplitBy
+ 	"Tests for  splitBy: and splitBy:do:"
+ 
+ 	self assert: ('a/b' splitBy: '/') = #('a' 'b').
+ 	self assert: ('a/b/' splitBy: '/') = #('a' 'b' '').
+ 	self assert: ('/a/b/' splitBy: '/') = #('' 'a' 'b' '').
+ 	self assert: ('///' splitBy: '/') = #('' '' '' '').
+ 	self assert: ('/' splitBy: '/') = #('' '').
+ 	self assert: ('a' splitBy: '/') = #('a').
+ 	self assert: ('' splitBy: '/') = #('').
+ 
+ 	self assert: ('a//b' splitBy: '//') = #('a' 'b').
+ 	self assert: ('///' splitBy: '//') = #('' '/').
+ 
+ 	self assert: ('Hello<p>World<p>' splitBy: '<p>') = #('Hello' 'World' '').
+ !



More information about the Packages mailing list