Skip to content

Commit

Permalink
MOD extending the test_should_pass_AsyncAssertThrows about evaluation…
Browse files Browse the repository at this point in the history
… of the thrown error
  • Loading branch information
angu committed Aug 11, 2023
1 parent f305e01 commit c1a451d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Tests/SwiftAsyncAssertTests/SwiftAsyncAssertTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ final class SwiftAsyncAssertTests: XCTestCase {
}

func test_should_pass_AsyncAssertThrows() async throws {
await AsyncAssertThrowsError(try await throwingExpr { throw TestingError.systemFailedToWork })
await AsyncAssertThrowsError(try await throwingExpr { throw TestingError.systemFailedToWork }) { error in
XCTAssertEqual(error as? TestingError, .systemFailedToWork)
}
}

func test_should_pass_AsyncAssertNotThrows() async throws {
Expand Down

0 comments on commit c1a451d

Please sign in to comment.