[squeak-dev] The Trunk: CollectionsTests-ul.264.mcz

commits at source.squeak.org commits at source.squeak.org
Thu Jun 2 18:33:52 UTC 2016


Levente Uzonyi uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ul.264.mcz

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

Name: CollectionsTests-ul.264
Author: ul
Time: 2 June 2016, 8:33:36.59299 pm
UUID: 8b363f56-526e-4bea-b997-56008d7e270f
Ancestors: CollectionsTests-ul.263

#sortBlock: will re-sort the SortedCollection, so there's no need to send #reSort to it afterwards in SortedCollectionTest >> #testShouldPrecede.

=============== Diff against CollectionsTests-ul.263 ===============

Item was changed:
  ----- Method: SortedCollectionTest>>testShouldPrecede (in category 'basic') -----
  testShouldPrecede
  	"self run: #testShouldPrecede"
  	
  	|aSortedCollection|
  	aSortedCollection := SortedCollection new.
  	self assert: (aSortedCollection should: 'za' precede: 'zb').
  	self assert: (aSortedCollection isEmpty).
  	self assert: (aSortedCollection should: 1 precede: 2).
  	
  	aSortedCollection sortBlock: [:a :b | a > b].
+ 
- 	aSortedCollection reSort.
  	self assert: (aSortedCollection should: 'zb' precede: 'za').
  	self assert: (aSortedCollection isEmpty).
  	self assert: (aSortedCollection should: 2 precede: 1).
  		!



More information about the Squeak-dev mailing list