Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trivial: categories in tests and add tests for two methods #615

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Soil-Core-Tests/SoilBackupTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Class {
#category : #'Soil-Core-Tests'
}

{ #category : #'as yet unclassified' }
{ #category : #accessing }
SoilBackupTest >> backupPath [
^ 'soil-backup'
]
Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core-Tests/SoilDatabaseJournalTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SoilDatabaseJournalTest class >> classUnderTest [
^ SoilPersistentDatabaseJournal
]

{ #category : #'as yet unclassified' }
{ #category : #running }
SoilDatabaseJournalTest >> fillDatabase [
| tx dict |
tx := soil newTransaction.
Expand Down
4 changes: 3 additions & 1 deletion src/Soil-Core-Tests/SoilIndexedDictionaryTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,9 @@ SoilIndexedDictionaryTest >> testNextAfterWithTransaction [
"open a second transaction ..."
tx2 := soil newTransaction.
"and test last"
self assert: (tx2 root nextAfter: #one) value equals: #twovalue
self assert: (tx2 root nextAfter: #one) equals: #twovalue.
"test #nextAssociationAfter: on the iterator here, too"
self assert: (tx2 proxyForObjectId: (tx2 root newIterator nextAssociationAfter: #one) value) equals: #twovalue
]

{ #category : #tests }
Expand Down
4 changes: 0 additions & 4 deletions src/Soil-Core-Tests/SoilObjectSegmentTest.class.st
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
Class {
#name : #SoilObjectSegmentTest,
#superclass : #TestCase,
#instVars : [
'reference',
'label'
],
#category : #'Soil-Core-Tests'
}

Expand Down
2 changes: 1 addition & 1 deletion src/Soil-Core/SoilFindRecordsVisitor.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ SoilFindRecordsVisitor >> records [
^ records
]

{ #category : #accessing }
{ #category : #api }
SoilFindRecordsVisitor >> returnFirst [

numberOfRecords := 1
Expand Down
9 changes: 5 additions & 4 deletions src/Soil-Core/SoilObjectSegment.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -110,10 +110,11 @@ SoilObjectSegment >> id: anObject [
]

{ #category : #accessing }
SoilObjectSegment >> indexAt: indexId [
^ self indexManager
at: indexId
ifAbsent: [ SoilIndexNotFound signal: 'index not found' ]
SoilObjectSegment >> indexAt: indexId [

^ self
indexAt: indexId
ifAbsent: [ SoilIndexNotFound signal: 'index not found' ]
]

{ #category : #accessing }
Expand Down
Loading