The Trunk: CollectionsTests-eem.280.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-eem.280.mcz

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