The Trunk: CollectionsTests-cmm.290.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

The Trunk: CollectionsTests-cmm.290.mcz

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

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

Name: CollectionsTests-cmm.290
Author: cmm
Time: 1 July 2018, 6:05:23.407272 pm
UUID: 753dbd31-b290-4acd-8102-9650ab7e011b
Ancestors: CollectionsTests-pre.289

Tests for String>>#condensedIntoOneLine.

=============== Diff against CollectionsTests-pre.289 ===============

Item was added:
+ ----- Method: StringTest>>testCondensedIntoOneLine (in category 'tests - converting') -----
+ testCondensedIntoOneLine
+ self assert: ' abc  d   ' condensedIntoOneLine = 'abc d'.
+ self assert: '
+ (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 empty.
+ "no blanks"
+ self assert: 'abcd' condensedIntoOneLine = 'abcd'.
+ "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'!