[squeak-dev] The Trunk: CollectionsTests-cmm.292.mcz

commits at source.squeak.org commits at source.squeak.org
Sun Jul 15 21:35:53 UTC 2018


Chris Muller uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-cmm.292.mcz

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

Name: CollectionsTests-cmm.292
Author: cmm
Time: 15 July 2018, 4:35:41.160412 pm
UUID: 8202d04e-6911-4849-8fe8-d2171640b1e3
Ancestors: CollectionsTests-dtl.291

It turns out better and more consistent for String>>#condensedIntoOneLine to do a uniform conversion than trimBlanks.

=============== Diff against CollectionsTests-dtl.291 ===============

Item was changed:
  ----- Method: StringTest>>testCondensedIntoOneLine (in category 'tests - converting') -----
  testCondensedIntoOneLine
+ 	self assert: ' abc  d   ' condensedIntoOneLine = ' abc d '.
- 	self assert: ' abc  d   ' condensedIntoOneLine = 'abc d'.
  	self assert: '
  		(2
  	 		to:         10
   			by:     2) 
+ ' condensedIntoOneLine = ' (2 to: 10 by: 2) '.
- ' condensedIntoOneLine = '(2 to: 10 by: 2)'.
  	"all blanks"
  	self assert:
  		(((0 to: 255)
  			collect: [ : each | each asCharacter ]
+ 			thenSelect: [ : each | each isSeparator ]) as: String) condensedIntoOneLine = String space.
- 			thenSelect: [ : each | each isSeparator ]) as: String) condensedIntoOneLine = String empty.
  	"no blanks"
  	self assert: 'abcd' condensedIntoOneLine = 'abcd'.
+ 	"Ensure every 'abcd' in this CompiledMethod is the same one for validity of next assertion."
- 	"Ensure every 'abcd' in this CompiledMethod is the same one."
  	self assert: 'abcd' == 'abcd'.
  	"supposed to always copy no matter what"
  	self assert: 'abcd' condensedIntoOneLine ~~ 'abcd'!



More information about the Squeak-dev mailing list