@@ -7529,6 +7529,42 @@ FASTPythonImporterTest >> testInterpolationWithSubscript [
75297529 self assert: (self topEntity isOfType: FASTPyIdentifier)
75307530]
75317531
7532+ { #category : 'tests - interpolations' }
7533+ FASTPythonImporterTest >> testInterpolationWithTypeConversion [
7534+ <generated>
7535+ "Generated as regression test by FASTPyImporterTestGenerator>>#generateTestNamed:fromCode:protocol:
7536+ Regenerate executing: self regenerateTest: #testInterpolationWithTypeConversion "
7537+
7538+ self parse: 'f"{text!r}" '.
7539+
7540+ self assert: (fast allWithType: FASTPyIdentifier) size equals: 1.
7541+ self assert: (fast allWithType: FASTPyInterpolation) size equals: 1.
7542+ self assert: (fast allWithType: FASTPyModule) size equals: 1.
7543+ self assert: (fast allWithType: FASTPyString) size equals: 1.
7544+
7545+ stack push: fast rootEntities anyOne containedEntities first.
7546+ self assert: self topEntity sourceCode equals: 'f"{text!r}"'.
7547+ self assert: (self topEntity isOfType: FASTPyString).
7548+ self assert: (self topEntity isOfType: FASTTLiteral).
7549+ self assert: (self topEntity isOfType: FASTTStringLiteral).
7550+
7551+ "Testing value of multivalued relation interpolations"
7552+ self assert: self topEntity interpolations size equals: 1.
7553+
7554+ stack push: (stack top interpolations at: 1).
7555+ self assert: self topEntity sourceCode equals: '{text!r}'.
7556+ self assert: (self topEntity isOfType: FASTPyInterpolation).
7557+
7558+ "Testing value of monovalue relation expression"
7559+ self assert: self topEntity expression isNotNil.
7560+
7561+ stack push: self topEntity expression.
7562+ self assert: self topEntity sourceCode equals: 'text'.
7563+ self assert: (self topEntity isOfType: FASTPyIdentifier).
7564+ stack pop.
7565+ self assert: self topEntity typeConversion equals: 'r'
7566+ ]
7567+
75327568{ #category : 'tests - function definitions' }
75337569FASTPythonImporterTest >> testKeywordSeparator [
75347570 <generated>
0 commit comments