We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f305e01 commit c1a451dCopy full SHA for c1a451d
1 file changed
Tests/SwiftAsyncAssertTests/SwiftAsyncAssertTests.swift
@@ -107,7 +107,9 @@ final class SwiftAsyncAssertTests: XCTestCase {
107
}
108
109
func test_should_pass_AsyncAssertThrows() async throws {
110
- await AsyncAssertThrowsError(try await throwingExpr { throw TestingError.systemFailedToWork })
+ await AsyncAssertThrowsError(try await throwingExpr { throw TestingError.systemFailedToWork }) { error in
111
+ XCTAssertEqual(error as? TestingError, .systemFailedToWork)
112
+ }
113
114
115
func test_should_pass_AsyncAssertNotThrows() async throws {
0 commit comments