Reading List
Swift Testing: Return Errors From #expect(throws:) from Michael Tsai RSS feed.
Swift Testing: Return Errors From #expect(throws:)
Also new in Swift 6.1, ST-0006: We offer three variants of #expect(throws:):One that takes an error type, and matches any error of the same type;One that takes an error instance (conforming to Equatable) and matches any error that compares equal to it; andOne that takes a trailing closure and allows test authors to write arbitrary […]