Skip to content

Commit

Permalink
Changed in memory to use sets so that behavior is compatible with RDBMS
Browse files Browse the repository at this point in the history
  • Loading branch information
mtabacman committed Jan 5, 2024
1 parent 630b9f0 commit 56ae176
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions source/Sagan-Core-Tests/RepositoryBasedTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,10 @@ RepositoryBasedTest >> testStoreIdentical [
self extraterrestrials store: instance.

found := self extraterrestrials findAll.
self assert: found size equals: 2.
self assert: ( found allSatisfy: [ :extraterrestrial |
extraterrestrial firstName = 'Silvester' and: [ extraterrestrial lastName = 'Stallone' ] ] )
self withTheOnlyOneIn: found do: [ :extraterrestrial |
self assert:
( extraterrestrial firstName = 'Silvester' and: [ extraterrestrial lastName = 'Stallone' ] )
]
]

{ #category : 'tests - conflict checking' }
Expand Down
2 changes: 1 addition & 1 deletion source/Sagan-Core/InMemoryRepository.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ InMemoryRepository >> findAllMatching: aCriteriaOrBlock sortedBy: aSortFunction
InMemoryRepository >> initializeCheckingConflictsAccordingTo: aConflictCheckingStrategy [

conflictCheckingStrategy := aConflictCheckingStrategy.
contents := OrderedCollection new
contents := Set new
]

{ #category : 'private - accessing' }
Expand Down

0 comments on commit 56ae176

Please sign in to comment.