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")
    }
}
Previous
Previous

multiline String

Next
Next

orEmpty