Skip to content

Commit 8bcee7a

Browse files
committed
Fix error in my earlier change which adopted 'counting', and rephrase message so that it uses the 'test(s) which recorded N issue(s)" terminology
1 parent da879e8 commit 8bcee7a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,11 +146,10 @@ extension Event {
146146
///
147147
/// - Returns: A string containing the header line.
148148
private func header() -> String {
149-
let failedTestsCount = failedTests.count
150-
let testWord = failedTestsCount.counting("test")
149+
let failedTestsPhrase = failedTests.count.counting("test")
151150
let totalIssuesCount = failedTests.reduce(0) { $0 + $1.issues.count }
152-
let issueWord = totalIssuesCount.counting("issue")
153-
return "Test run had \(failedTestsCount) failed \(testWord) with \(totalIssuesCount) \(issueWord):\n"
151+
let issuesPhrase = totalIssuesCount.counting("issue")
152+
return "Test run had \(failedTestsPhrase) which recorded \(issuesPhrase) total:\n"
154153
}
155154

156155
/// Format a single failed test entry.

0 commit comments

Comments
 (0)