Andy Matuschak@andy_matuschakReplying to @drance@drance oh but in Swift 2 you can! do { try fn(); XCTFail(“Should have thrown”) } catch {}9:41 PM · Jul 20, 2015·Tweetbot for Mac1 Like
saniul@saniul·Jul 20, 2015Replying to @andy_matuschak@andy_matuschak @drance There’s this: https://github.com/mrackwitz/CatchingFire…1
Joachim@cocoafrog·Jul 21, 2015Replying to @andy_matuschak@andy_matuschak @drance but those are different kinds of throws, right? The Swift one is about NSError, the XCTAssertThrows about exceptions