[squeak-dev] The Trunk: CollectionsTests-eem.280.mcz

commits at source.squeak.org commits at source.squeak.org
Fri Jun 23 18:34:15 UTC 2017


Eliot Miranda uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-eem.280.mcz

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

Name: CollectionsTests-eem.280
Author: eem
Time: 23 June 2017, 11:34:06.974048 am
UUID: 186b3ab6-6f15-41c4-b07d-3c6a335c1236
Ancestors: CollectionsTests-pre.279

Add tests for withoutDuplicates and ifAbsentAdd:

=============== Diff against CollectionsTests-pre.279 ===============

Item was added:
+ ----- Method: SequenceableCollectionTest>>testWithoutDuplicates (in category 'tests - copying') -----
+ testWithoutDuplicates
+ 
+ 	self assert: #(1 3 5 7 9 2 4 6 8 10)
+ 		equals: ((1 to: 10 by: 2), (1 to: 10 by: 2), (2 to: 11 by: 2), (2 to: 11 by: 2)) withoutDuplicates!

Item was added:
+ ----- Method: SetTest>>testIfAbsentAdd (in category 'Sunit original tests') -----
+ testIfAbsentAdd
+ 	| it |
+ 	it := 5.
+ 	self deny: (empty includes: it).
+ 	self assert: (empty ifAbsentAdd: it).
+ 	self assert: (empty includes: it).
+ 	self deny: (empty ifAbsentAdd: it).
+ 	self assert: (empty includes: it)!



More information about the Squeak-dev mailing list