@@ -255,8 +255,8 @@ func assertDiagnostic<T: SyntaxProtocol>(
255
255
/// - Parameters:
256
256
/// - originalSource: The original source code, which is expected to contain
257
257
/// macros in various places (e.g., `#stringify(x + y)`).
258
- /// - expandedSource : The source code that we expect to see after performing
259
- /// macro expansion on the original source.
258
+ /// - expectedExpandedSource : The source code that we expect to see after
259
+ /// performing macro expansion on the original source.
260
260
/// - diagnostics:
261
261
/// - macros: The macros that should be expanded, provided as a dictionary
262
262
/// mapping macro names (e.g., `"stringify"`) to implementation types
@@ -265,7 +265,7 @@ func assertDiagnostic<T: SyntaxProtocol>(
265
265
/// - testFileName: The name of the test file name to use.
266
266
public func assertMacroExpansion(
267
267
_ originalSource: String ,
268
- expandedSource: String ,
268
+ expandedSource expectedExpandedSource : String ,
269
269
diagnostics: [ DiagnosticSpec ] = [ ] ,
270
270
macros: [ String : Macro . Type ] ,
271
271
testModuleName: String = " TestModule " ,
@@ -301,7 +301,7 @@ public func assertMacroExpansion(
301
301
let formattedSourceFile = expandedSourceFile. formatted ( using: BasicFormat ( indentationWidth: indentationWidth) )
302
302
assertStringsEqualWithDiff (
303
303
formattedSourceFile. description. trimmingCharacters ( in: . newlines) ,
304
- expandedSource . trimmingCharacters ( in: . newlines) ,
304
+ expectedExpandedSource . trimmingCharacters ( in: . newlines) ,
305
305
additionalInfo: """
306
306
Actual expanded source:
307
307
\( formattedSourceFile)
0 commit comments