@@ -248,8 +248,8 @@ func assertDiagnostic(
248248/// - Parameters:
249249/// - originalSource: The original source code, which is expected to contain
250250/// macros in various places (e.g., `#stringify(x + y)`).
251- /// - expandedSource : The source code that we expect to see after performing
252- /// macro expansion on the original source.
251+ /// - expectedExpandedSource : The source code that we expect to see after
252+ /// performing macro expansion on the original source.
253253/// - diagnostics: The diagnostics when expanding any macro
254254/// - macros: The macros that should be expanded, provided as a dictionary
255255/// mapping macro names (e.g., `"stringify"`) to implementation types
@@ -258,7 +258,7 @@ func assertDiagnostic(
258258/// - testFileName: The name of the test file name to use.
259259public func assertMacroExpansion(
260260 _ originalSource: String ,
261- expandedSource: String ,
261+ expandedSource expectedExpandedSource : String ,
262262 diagnostics: [ DiagnosticSpec ] = [ ] ,
263263 macros: [ String : Macro . Type ] ,
264264 testModuleName: String = " TestModule " ,
@@ -294,10 +294,10 @@ public func assertMacroExpansion(
294294 let formattedSourceFile = expandedSourceFile. formatted ( using: BasicFormat ( indentationWidth: indentationWidth) )
295295 assertStringsEqualWithDiff (
296296 formattedSourceFile. description. trimmingCharacters ( in: . newlines) ,
297- expandedSource . trimmingCharacters ( in: . newlines) ,
297+ expectedExpandedSource . trimmingCharacters ( in: . newlines) ,
298298 additionalInfo: """
299299 Actual expanded source:
300- \( expandedSource )
300+ \( formattedSourceFile )
301301 """ ,
302302 file: file,
303303 line: line
0 commit comments