Skip to content

Commit

Permalink
Fixes #141
Browse files Browse the repository at this point in the history
  • Loading branch information
eMaringolo committed Jan 8, 2025
1 parent 2d6d580 commit 8b83efd
Show file tree
Hide file tree
Showing 5 changed files with 38 additions and 11 deletions.
16 changes: 8 additions & 8 deletions source/.configmaps
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
#conditions : [ ],
#ts : 3912053785,
#ts : 3913800832,
#comment : '',
#formatVersion : '1.1',
#applications : OrderedCollection [
Expand Down Expand Up @@ -37,16 +37,16 @@
},
{
#name : 'TonelWriterModel',
#versionName : 'ae2f5a2-master + 140',
#ts : 3912052700
#versionName : '8f3f990-master + 141',
#ts : 3913715428
}
],
#name : 'ENVY/Image Tonel',
#versionName : 'ae2f5a2-master + 134, 135, 137, 138, 139, 140'
#versionName : '8f3f990-master + 141 a'
},
{
#conditions : [ ],
#ts : 3912053741,
#ts : 3913800868,
#comment : '',
#formatVersion : '1.1',
#applications : OrderedCollection [
Expand All @@ -67,11 +67,11 @@
},
{
#name : 'TonelWriterTests',
#versionName : 'ae2f5a2-master + 140',
#ts : 3912053677
#versionName : '8f3f990-master + 141',
#ts : 3913800600
}
],
#name : 'Test ENVY/Image Tonel',
#versionName : 'ae2f5a2-master + 134, 135, 137, 138, 139, 140'
#versionName : '8f3f990-master + 141 a'
}
]
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ TonelWriterMethodDefinition >> categoryFor: aTonelWriter [
"Answer the category used in a TonelWriter."

^(self isMonticelloExtension and: [aTonelWriter useMonticelloExtensions not])
ifTrue: [self allCategories first]
ifTrue: [self allCategories asSortedCollection first]
ifFalse: [self category]


Expand Down
2 changes: 1 addition & 1 deletion source/TonelWriterTestSubSubApp/Object.extension.st
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Extension {
#name : 'Object'
}

{ #category : 'Real Category',
{ #category : 'Another One',
#vaCategories : ['Another One','Real Category'] }
Object >> subSubExtensionForTest [

Expand Down
27 changes: 27 additions & 0 deletions source/TonelWriterTests/TonelMethodWriterTest.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,33 @@ TonelMockA >> withModeThanOneLine [
'
]

{ #category : 'Test' }
TonelMethodWriterTest >> testWriteMethodWithMultipleCategories [

| definition stream |

definition :=
TonelWriterMethodDefinition
uniquelyKnownAs: #withMultipleCategories
in: TonelMockA
categorizedAs: 'Accessing'.
stream := self newStream.
writer write: definition on: stream.
self
assert: stream contents
isEqualSkippingSeparatorsTo:
'
{
#category : ''Accessing'',
#vaCategories : [''Accessing'',''Evaluating'',''Private'']
}
TonelMockA >> withMultipleCategories [
^''withMultipleCategories''
]
'
]

{ #category : 'Test' }
TonelMethodWriterTest >> testWritePrivateMethodDefinition [

Expand Down
2 changes: 1 addition & 1 deletion source/TonelWriterTests/TonelMockA.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ TonelMockA >> withModeThanOneLine [
#vaCategories : ['Accessing','Evaluating','Private'] }
TonelMockA >> withMultipleCategories [

^ 'withMultipleCategories'
^'withMultipleCategories'
]

{ #category : 'Accessing' }
Expand Down

0 comments on commit 8b83efd

Please sign in to comment.