XCTest + try!
Here’s the code if you want to experiment with it:
import XCTest
class Test: XCTestCase {
func test() throws {
XCTAssertEqual(try throwingFunction(), "Expected Result")
}
}
Here’s the code if you want to experiment with it:
import XCTest
class Test: XCTestCase {
func test() throws {
XCTAssertEqual(try throwingFunction(), "Expected Result")
}
}