add swiftUI code

This commit is contained in:
zeus
2025-01-22 14:09:10 +08:00
parent 68e7b7347c
commit 8a99853829
2531 changed files with 486215 additions and 0 deletions
@@ -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)")
}
}
}