Skip to content

Commit fd1b3d1

Browse files
mbrandonwgithub-actions[bot]
authored andcommitted
Run swift-format
1 parent c90c0f9 commit fd1b3d1

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Tests/IssueReportingTests/XCTestTests.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,17 +50,17 @@ final class XCTestTests: XCTestCase {
5050
withExpectedIssue { throw Failure() }
5151
}
5252

53-
func testOverrideIssueContext() {
54-
XCTExpectFailure {
55-
withIssueContext(fileID: #fileID, filePath: #filePath, line: #line, column: #column) {
56-
reportIssue("Something went wrong")
53+
func testOverrideIssueContext() {
54+
XCTExpectFailure {
55+
withIssueContext(fileID: #fileID, filePath: #filePath, line: #line, column: #column) {
56+
reportIssue("Something went wrong")
57+
}
58+
} issueMatcher: { issue in
59+
let expectedReportingLine = #line - 4
60+
return issue.sourceCodeContext.location?.lineNumber == expectedReportingLine
61+
&& issue.compactDescription == "failed - Something went wrong"
5762
}
58-
} issueMatcher: { issue in
59-
let expectedReportingLine = #line - 4
60-
return issue.sourceCodeContext.location?.lineNumber == expectedReportingLine
61-
&& issue.compactDescription == "failed - Something went wrong"
6263
}
63-
}
6464
#endif
6565
}
6666

0 commit comments

Comments
 (0)