[swift-evolution] Testing Assertions
Mohamed Ebrahim Afifi
mohamede1945 at gmail.com
Thu Dec 31 03:35:58 CST 2015
Right now, we cannot easily test failed assertions (assert,
assertionFailure, precondition, preconditionFailure, fatalError) in our own
code without some hacks in the code under test. Like this example
So, my suggestion is to add for XCTest something very similar to
*expectCrashLater* that is defined here
and used in tests like this example
What do you think?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the swift-evolution