The Inbox: CollectionsTests-mt.309.mcz

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

The Inbox: CollectionsTests-mt.309.mcz

commits-2
A new version of CollectionsTests was added to project The Inbox:
http://source.squeak.org/inbox/CollectionsTests-mt.309.mcz

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

Name: CollectionsTests-mt.309
Author: mt
Time: 13 May 2019, 9:47:17.18801 am
UUID: 9c8aae8c-fcea-3440-967b-50b2fa72a277
Ancestors: CollectionsTests-nice.308

Tests for Collections-mt.833.

=============== Diff against CollectionsTests-nice.308 ===============

Item was added:
+ ----- Method: CollectionTest>>testAny (in category 'tests') -----
+ testAny
+
+ self
+ assert: #(1 2) equals: (#(1 2 3 4) any: 2);
+ assert: #(1 2 3 4) equals: (#(1 2 3 4) any: 4);
+ should: [#(1 2 3 4) any: 5] raise: Error.!

Item was added:
+ ----- Method: CollectionTest>>testAnyAs (in category 'tests') -----
+ testAnyAs
+
+ self
+ assert: ((#(1 2 3 4) any: 2 as: OrderedCollection) isKindOf: OrderedCollection);
+ assert: ((#(1 1 2 3 4) any: 2 as: Set) isKindOf: Set);
+ assert: 1 equals: (#(1 1 1 1) any: 3 as: Set) size.!

Item was added:
+ ----- Method: CollectionTest>>testTake (in category 'tests') -----
+ testTake
+
+ self
+ assert: #(1 2) equals: (#(1 2 3 4) take: 2);
+ assert: #(1 2) equals: (#(1 2) take: 5).!


Reply | Threaded
Open this post in threaded view
|

Re: The Inbox: CollectionsTests-mt.309.mcz

marcel.taeumel
Well, the tests should actually use #includes: and #size to avoid the order check... :-)

Best,
Marcel

Am 13.05.2019 09:47:20 schrieb [hidden email] <[hidden email]>:

A new version of CollectionsTests was added to project The Inbox:
http://source.squeak.org/inbox/CollectionsTests-mt.309.mcz

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

Name: CollectionsTests-mt.309
Author: mt
Time: 13 May 2019, 9:47:17.18801 am
UUID: 9c8aae8c-fcea-3440-967b-50b2fa72a277
Ancestors: CollectionsTests-nice.308

Tests for Collections-mt.833.

=============== Diff against CollectionsTests-nice.308 ===============

Item was added:
+ ----- Method: CollectionTest>>testAny (in category 'tests') -----
+ testAny
+
+ self
+ assert: #(1 2) equals: (#(1 2 3 4) any: 2);
+ assert: #(1 2 3 4) equals: (#(1 2 3 4) any: 4);
+ should: [#(1 2 3 4) any: 5] raise: Error.!

Item was added:
+ ----- Method: CollectionTest>>testAnyAs (in category 'tests') -----
+ testAnyAs
+
+ self
+ assert: ((#(1 2 3 4) any: 2 as: OrderedCollection) isKindOf: OrderedCollection);
+ assert: ((#(1 1 2 3 4) any: 2 as: Set) isKindOf: Set);
+ assert: 1 equals: (#(1 1 1 1) any: 3 as: Set) size.!

Item was added:
+ ----- Method: CollectionTest>>testTake (in category 'tests') -----
+ testTake
+
+ self
+ assert: #(1 2) equals: (#(1 2 3 4) take: 2);
+ assert: #(1 2) equals: (#(1 2) take: 5).!