[lang-ref] ( handle_exception ) ( swift )
@Test func handleException() {
// #expect(..) { throw .. }
#expect(
throws: XUnitTestError.expectedError,
"Expected error"
) {
throw XUnitTestError.expectedError
}
}
@Test func handleException() {
// #expect(..) { throw .. }
#expect(
throws: XUnitTestError.expectedError,
"Expected error"
) {
throw XUnitTestError.expectedError
}
}