File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -129,12 +129,17 @@ MiSourceTextRendererModelTest >> testHighlightChildWithIndexedFileAnchor [
129129
130130{ #category : ' tests - highlighting' }
131131MiSourceTextRendererModelTest >> testHighlightChildWithNoAnchor [
132+ " Although it uses FamixStClass and FamixStMethod, the code given in sourceAnchor is not
133+ formated as normal Pharo code.
134+ This is not a problem as long the entities' names are found in it"
135+
132136 | entity |
137+
133138 entity := FamixStClass new
134139 name: ' aClass' ;
135140 sourceAnchor: (self stubIndexedAnchorText:
136141' code of aClass {
137- code of aMethod()
142+ code of aClass >> aMethod()
138143}' ).
139144 FamixStMethod new
140145 name: ' aMethod' ;
@@ -147,10 +152,6 @@ MiSourceTextRendererModelTest >> testHighlightChildWithNoAnchor [
147152 self assert: highlight class equals: MiSourceTextIdentifierHighlight
148153 ].
149154
150- " one highlight has an interval, the other not"
151- self assert: (rendererModel highlights anySatisfy: #hasInterval ).
152- self assert: (rendererModel highlights anySatisfy: [ :highlight | highlight hasInterval not ]).
153-
154155]
155156
156157{ #category : ' tests - highlighting' }
You can’t perform that action at this time.
0 commit comments