Skip to content

Commit

Permalink
Fix OrderedSet tests in GS64
Browse files Browse the repository at this point in the history
  • Loading branch information
gcotelli committed Aug 8, 2023
1 parent f450ca7 commit a62027d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/Buoy-Collections-Tests/OrderedSetTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ OrderedSetTest >> testCopyReplaceFromToWithInsertingAtEnd [

original := self abcSet.

copy := original copyReplaceFrom: 4 to: 4 with: 'f'.
copy := original copyReplaceFrom: 4 to: 3 with: 'f'.

self
assert: copy size equals: 4;
Expand Down
9 changes: 9 additions & 0 deletions source/Buoy-Collections/OrderedSet.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,15 @@ OrderedSet >> copyFrom: start to: stop [
^ self species withAll: ( collection copyFrom: start to: stop )
]

{ #category : #copying }
OrderedSet >> copyReplaceAll: oldSubCollection with: newSubCollection [

^ self species withAll:
(collection
copyReplaceAll: oldSubCollection
with: newSubCollection)
]

{ #category : #copying }
OrderedSet >> copyReplaceFrom: start to: stop with: replacementCollection [

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ TestAsserter >> should: aBlock raise: anException withExceptionDo: anotherBlock
[
aBlock value.
false]
sunitOn: anException
on: anException
do: [:aSignal |
anotherBlock value: aSignal.
aSignal sunitExitWith: true].
Expand Down

0 comments on commit a62027d

Please sign in to comment.