[squeak-dev] The Inbox: CollectionsTests-mt.309.mcz

Marcel Taeumel marcel.taeumel at hpi.de
Mon May 13 08:07:59 UTC 2019


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

Best,
Marcel
Am 13.05.2019 09:47:20 schrieb commits at source.squeak.org <commits at source.squeak.org>:
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).!


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20190513/b3d972e4/attachment.html>


More information about the Squeak-dev mailing list