Skip to content

Commit

Permalink
Add test case for OrderedSet>>#with:with:with:with:
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 8, 2023
1 parent 713d70b commit a2b8aa2
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions source/Buoy-Collections-Tests/OrderedSetTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -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 [

Expand Down

0 comments on commit a2b8aa2

Please sign in to comment.