Skip to content

Commit 975eded

Browse files
authored
Fix a missing newline when emitting a warning diagnostic to the console. (#152)
Accidentally omitted said newline in #145. This PR restores it. Currently, we use this code path when `XCTestScaffold` and `--enable-experimental-swift-testing` are used together.
1 parent 53e0d93 commit 975eded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/Events/Recorder/Event.ConsoleOutputRecorder.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,6 @@ extension Event.ConsoleOutputRecorder {
293293
/// The caller is responsible for presenting this message to the user.
294294
static func warning(_ message: String, options: [Event.ConsoleOutputRecorder.Option]) -> String {
295295
let symbol = Event.Symbol.warning.stringValue(options: Set(options))
296-
return "\(symbol) \(message)"
296+
return "\(symbol) \(message)\n"
297297
}
298298
}

0 commit comments

Comments
 (0)