The Trunk: CollectionsTests-ul.264.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-ul.264.mcz

commits-2
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).
  !