Skip to content

Commit 65cfbbc

Browse files
committed
[XCTestCase] Fix missing open paren for unexpected
When executing a test case with a single failure, the following output is produced: ``` Executed 1 test, with 1 failure 0 unexpected) in 0.0 (0.0) seconds ``` Add an opening parenthesis for `0 unexpected)`, to instead output `(0 unexpected)`.
1 parent 8dce296 commit 65cfbbc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

XCTest/XCTestCase.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ extension XCTestCase {
7373
}
7474
let averageDuration = totalDuration / Double(tests.count)
7575

76-
print("Executed \(tests.count) test\(testCountSuffix), with \(totalFailures) failure\(failureSuffix) \(unexpectedFailures) unexpected) in \(printableStringForTimeInterval(averageDuration)) (\(printableStringForTimeInterval(totalDuration))) seconds")
76+
print("Executed \(tests.count) test\(testCountSuffix), with \(totalFailures) failure\(failureSuffix) (\(unexpectedFailures) unexpected) in \(printableStringForTimeInterval(averageDuration)) (\(printableStringForTimeInterval(totalDuration))) seconds")
7777
}
7878

7979
// This function is for the use of XCTestCase only, but we must make it public or clients will get a link failure when using XCTest (23476006)

0 commit comments

Comments
 (0)