Skip to content

Commit a27f521

Browse files
author
anquetil
committed
new test was duplicate of old test. removed the new and updated the old
1 parent 1731ed6 commit a27f521

File tree

1 file changed

+2
-47
lines changed

1 file changed

+2
-47
lines changed

src/EsopeImporter-Tests/FamixEsopeResolverTest.class.st

+2-47
Original file line numberDiff line numberDiff line change
@@ -467,48 +467,6 @@ FamixEsopeResolverTest >> testResolveAccessesForAPointerDotAttribute [
467467
self assert: access2 accessor equals: main
468468
]
469469

470-
{ #category : 'test - resolveAccess' }
471-
FamixEsopeResolverTest >> testResolveAccessesForAPointerDotAttributeWithoutSegment [
472-
473-
| main access access2 varP typePoint |
474-
"
475-
subroutine demo
476-
pointeur p.point
477-
p.x
478-
end
479-
"
480-
typePoint := self newEntity: FamixEsopeSegment named: 'point'.
481-
482-
varP := self newEntity: FamixF77Variable named: 'p'.
483-
varP declaredType: typePoint.
484-
485-
access := self newEntity: FamixF77Access.
486-
access attributeAt: #entity put: (self defaultIASTVarAccess: 'p').
487-
488-
access2 := self newEntity: FamixF77Access.
489-
access2 attributeAt: #entity put: (self defaultIASTVarAccess: 'x').
490-
access2 attributeAt: #parentAccess put: access.
491-
492-
main := (self defaultMain: 'main')
493-
addType: typePoint;
494-
addLocalVariable: varP;
495-
accesses: {
496-
access.
497-
access2 };
498-
yourself.
499-
500-
self assert: main localVariables size equals: 1.
501-
502-
resolver resolveAccesses.
503-
504-
self assert: main accesses size equals: 2.
505-
506-
self assert: access variable equals: varP.
507-
508-
self assert: access2 variable class equals: FamixFortranAttribute.
509-
self assert: access2 variable name equals: 'x'
510-
]
511-
512470
{ #category : 'test - resolveAccess' }
513471
FamixEsopeResolverTest >> testResolveAccessesForAPointerVariableDeclared [
514472

@@ -1392,8 +1350,6 @@ FamixEsopeResolverTest >> testResolvePointeurWithStubSegmentAccessingField [
13921350
end
13931351
"
13941352

1395-
self flag: '#FIXME: after this tests we must have a stub segment and we need to add a x attribute to this segment?'.
1396-
13971353
varP := self newEntity: FamixF77Variable named: 'p'.
13981354
varP segment: 'point'.
13991355
varP isEsope: true.
@@ -1417,10 +1373,9 @@ FamixEsopeResolverTest >> testResolvePointeurWithStubSegmentAccessingField [
14171373
self assert: main accesses size equals: 2.
14181374

14191375
self assert: access variable equals: varP.
1420-
self assert: access accessor equals: main.
14211376

1422-
self assert: access2 variable isNil.
1423-
self assert: access2 accessor equals: main
1377+
self assert: access2 variable class equals: FamixFortranAttribute.
1378+
self assert: access2 variable name equals: 'x'
14241379
]
14251380

14261381
{ #category : 'tests' }

0 commit comments

Comments
 (0)