#2 XCTest vs. Swift Testing - Has error testing been simplified?

Today we check how testing error has changed in the new framework. In XCTest, we use XCTAssertThrowsError to check if a specific error is thrown. This assertion comes with the error handler closure where we can perform additional checks like e.g. verifying the exact error type. With Swift Testing, this process is even simpler, especially when an error conforms to Equatable . We can directly…