File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 76
76
/// - Parameters:
77
77
/// - errorType: The type of error that is expected to be thrown. If
78
78
/// `expression` could throw _any_ error, or the specific type of thrown
79
- /// error is unimportant, pass `any Error.self`.
79
+ /// error is unimportant, pass `( any Error) .self`.
80
80
/// - comment: A comment describing the expectation.
81
81
/// - sourceLocation: The source location to which recorded expectations and
82
82
/// issues should be attributed.
153
153
/// - Parameters:
154
154
/// - errorType: The type of error that is expected to be thrown. If
155
155
/// `expression` could throw _any_ error, or the specific type of thrown
156
- /// error is unimportant, pass `any Error.self`.
156
+ /// error is unimportant, pass `( any Error) .self`.
157
157
/// - comment: A comment describing the expectation.
158
158
/// - sourceLocation: The source location to which recorded expectations and
159
159
/// issues should be attributed.
Original file line number Diff line number Diff line change @@ -349,7 +349,7 @@ their equivalents in the testing library:
349
349
| ` XCTAssertGreaterThanOrEqual(x, y) ` | ` #expect(x >= y) ` |
350
350
| ` XCTAssertLessThanOrEqual(x, y) ` | ` #expect(x <= y) ` |
351
351
| ` XCTAssertLessThan(x, y) ` | ` #expect(x < y) ` |
352
- | ` XCTAssertThrowsError(try f()) ` | ` #expect(throws: any Error.self) { try f() } ` |
352
+ | ` XCTAssertThrowsError(try f()) ` | ` #expect(throws: ( any Error) .self) { try f() } ` |
353
353
| ` XCTAssertNoThrow(try f()) ` | ` #expect(throws: Never.self) { try f() } ` |
354
354
| ` try XCTUnwrap(x) ` | ` try #require(x) ` |
355
355
| ` XCTFail("…") ` | ` Issue.record("…") ` |
You can’t perform that action at this time.
0 commit comments