[Pkg] The Trunk: CollectionsTests-mt.370.mcz
commits at source.squeak.org
commits at source.squeak.org
Wed Feb 2 19:54:23 UTC 2022
Marcel Taeumel uploaded a new version of CollectionsTests to project The Trunk:
http://source.squeak.org/trunk/CollectionsTests-mt.370.mcz
==================== Summary ====================
Name: CollectionsTests-mt.370
Author: mt
Time: 2 February 2022, 8:54:22.50738 pm
UUID: 67e4c29b-98ce-0940-8644-6809341edecb
Ancestors: CollectionsTests-ct.369
Complements Collections-mt.983.
=============== Diff against CollectionsTests-ct.369 ===============
Item was added:
+ ----- Method: OrderedDictionaryTest>>testCompare (in category 'tests') -----
+ testCompare
+
+ | dictOne dictTwo |
+ sut at: #a put: 5; at: #b put: 4.
+ self assert: sut equals: sut.
+
+ dictOne := OrderedDictionary with: #a -> 5 with: #b -> 4.
+ dictTwo := OrderedDictionary with: #a -> 5 with: #b -> 4.
+ self assert: dictOne equals: dictTwo.
+
+ dictOne := OrderedDictionary with: #a -> 5 with: #b -> 4.
+ dictTwo := OrderedDictionary with: 'a' -> 5 with: 'b' -> 4.
+ self assert: dictOne equals: dictTwo.
+
+ dictOne := OrderedDictionary with: #a -> 5 with: #b -> 4.
+ dictTwo := OrderedDictionary with: #b -> 4 with: #a -> 5.
+ self deny: dictOne equals: dictTwo.!
More information about the Packages
mailing list