Andreas Raab uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-ar.116.mcz==================== Summary ====================
Name: CollectionsTests-ar.116
Author: ar
Time: 21 November 2009, 1:09:07 am
UUID: 9bc4ef72-933e-b34d-937b-f20b7af32ab8
Ancestors: CollectionsTests-ul.115
Updated tests for ifEmpty: / ifNotEmpty:.
=============== Diff against CollectionsTests-ul.115 ===============
Item was added:
+ ----- Method: CollectionTest>>testIfEmpty (in category 'tests') -----
+ testIfEmpty
+
+ nonEmpty ifEmpty: [self assert: false].
+ self assert: (empty ifEmpty: [self]) == self.
+ self assert: (nonEmpty ifEmpty: [self]) == nonEmpty.
+ !
Item was changed:
----- Method: CollectionTest>>testIfNotEmpty (in category 'tests') -----
testIfNotEmpty
empty ifNotEmpty: [self assert: false].
self assert: (nonEmpty ifNotEmpty: [self]) == self.
+ self assert: (nonEmpty ifNotEmpty: [:s | s first]) = #x.
+ self assert: (empty ifNotEmpty: [self]) == empty.
- self assert: (nonEmpty ifNotEmpty: [:s | s first]) = #x
!