From a2b8aa23126f3baf6c87bfff2ac75fb5aa52698f Mon Sep 17 00:00:00 2001 From: Gabriel Omar Cotelli Date: Tue, 8 Aug 2023 13:06:50 -0300 Subject: [PATCH] Add test case for OrderedSet>>#with:with:with:with: --- source/Buoy-Collections-Tests/OrderedSetTest.class.st | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/source/Buoy-Collections-Tests/OrderedSetTest.class.st b/source/Buoy-Collections-Tests/OrderedSetTest.class.st index 3bcda05..01a2ed9 100644 --- a/source/Buoy-Collections-Tests/OrderedSetTest.class.st +++ b/source/Buoy-Collections-Tests/OrderedSetTest.class.st @@ -1073,6 +1073,17 @@ OrderedSetTest >> testWithDo [ self assert: count equals: 3 ] +{ #category : #'tests - instance creation' } +OrderedSetTest >> testWithWithWithWith [ + + | set | + + set := OrderedSet with: #a with: #c with: #b with: #a . + self assert: set hasTheSameElementsInTheSameOrderThat: #( a c b ). + + +] + { #category : #'tests - copying' } OrderedSetTest >> testWithoutFirst [