Skip to content

Commit 4d8afdc

Browse files
committed
Do not ignore source property
1 parent 6c833f2 commit 4d8afdc

1 file changed

Lines changed: 11 additions & 3 deletions

File tree

‎src/FAST-Python-Tools-Tests/FASTPythonImporterTest.class.st‎

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ FASTPythonImporterTest class >> initialize [
3535
{ #category : 'test generation' }
3636
FASTPythonImporterTest class >> propertiesToExclude [
3737

38-
^ #( source startPos endPos )
38+
^ #( startPos endPos )
3939
]
4040

4141
{ #category : 'test generation' }
@@ -6814,7 +6814,7 @@ FASTPythonImporterTest >> testListSplatInCall [
68146814
FASTPythonImporterTest >> testListSplatInList [
68156815
<generated>
68166816
"Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol:
6817-
Regenerate executing: self regenerateTest: #testListSplatInListl "
6817+
Regenerate executing: self regenerateTest: #testListSplatInList "
68186818

68196819
self parse: '[*args, 4]'.
68206820

@@ -7463,6 +7463,8 @@ False' withPlatformLineEndings.
74637463
self assert: (self topEntity isOfType: FASTTStatementBlock).
74647464
self assert: (self topEntity isOfType: FamixTHasImmediateSource).
74657465
self assert: (self topEntity isOfType: FamixTSourceAnchor).
7466+
self assert: self topEntity source equals: 'True
7467+
False'.
74667468

74677469
"Testing value of multivalued relation statements"
74687470
self assert: self topEntity statements size equals: 2.
@@ -10321,7 +10323,11 @@ FASTPythonImporterTest >> testTwoComments [
1032110323
stack push: (stack top comments at: 2).
1032210324
self assert: self topEntity sourceCode equals: '# Comment 2'.
1032310325
self assert: (self topEntity isOfType: FASTPyComment).
10324-
self assert: (self topEntity isOfType: FASTTComment)
10326+
self assert: (self topEntity isOfType: FASTTComment).
10327+
stack pop.
10328+
self assert: self topEntity source equals: '# Comment 1
10329+
10330+
# Comment 2'
1032510331
]
1032610332

1032710333
{ #category : 'tests - imports' }
@@ -10344,6 +10350,8 @@ import mathplotlib as mpl' withPlatformLineEndings.
1034410350
self assert: (self topEntity isOfType: FASTTStatementBlock).
1034510351
self assert: (self topEntity isOfType: FamixTHasImmediateSource).
1034610352
self assert: (self topEntity isOfType: FamixTSourceAnchor).
10353+
self assert: self topEntity source equals: 'import numpy as np
10354+
import mathplotlib as mpl'.
1034710355

1034810356
"Testing value of multivalued relation statements"
1034910357
self assert: self topEntity statements size equals: 2.

0 commit comments

Comments
 (0)