add iOS
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import XCTest
|
||||
|
||||
class GRDBCrashTestCase: GRDBTestCase {
|
||||
|
||||
// This method does not actually catch any crash.
|
||||
// But it expresses an intent :-)
|
||||
func assertCrash(message: String, @noescape block: () throws -> ()) {
|
||||
do {
|
||||
try block()
|
||||
XCTFail("Crash expected: \(message)")
|
||||
} catch {
|
||||
XCTFail("Unexpected error: \(error)")
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user