Skip to content

Commit 751fa82

Browse files
committed
Replace "a warning issue" with "a warning"
1 parent ad87ed0 commit 751fa82

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

+6-6
Original file line numberDiff line numberDiff line change
@@ -417,18 +417,18 @@ extension Event.HumanReadableOutputRecorder {
417417
""
418418
}
419419
let symbol: Event.Symbol
420-
let introducer: String
420+
let subject: String
421421
if issue.isKnown {
422422
symbol = .pass(knownIssueCount: 1)
423-
introducer = "a known"
423+
subject = "a known issue"
424424
} else {
425425
switch issue.severity {
426426
case .warning:
427427
symbol = .warning
428-
introducer = "a warning"
428+
subject = "a warning"
429429
case .error:
430430
symbol = .fail
431-
introducer = "an"
431+
subject = "an issue"
432432
}
433433
}
434434

@@ -458,13 +458,13 @@ extension Event.HumanReadableOutputRecorder {
458458
let primaryMessage: Message = if parameterCount == 0 {
459459
Message(
460460
symbol: symbol,
461-
stringValue: "\(_capitalizedTitle(for: test)) \(testName) recorded \(introducer) issue\(atSourceLocation): \(issue.kind)",
461+
stringValue: "\(_capitalizedTitle(for: test)) \(testName) recorded \(subject) \(atSourceLocation): \(issue.kind)",
462462
conciseStringValue: String(describing: issue.kind)
463463
)
464464
} else {
465465
Message(
466466
symbol: symbol,
467-
stringValue: "\(_capitalizedTitle(for: test)) \(testName) recorded \(introducer) issue with \(parameterCount.counting("argument")) \(labeledArguments)\(atSourceLocation): \(issue.kind)",
467+
stringValue: "\(_capitalizedTitle(for: test)) \(testName) recorded \(subject) with \(parameterCount.counting("argument")) \(labeledArguments)\(atSourceLocation): \(issue.kind)",
468468
conciseStringValue: String(describing: issue.kind)
469469
)
470470
}

0 commit comments

Comments
 (0)