From d26fed9bbd6f8a394132db88b84e6443603c7f1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 12 Sep 2015 15:40:30 +0200 Subject: [PATCH] Documentation --- GRDB Tests/Public/CrashTests.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GRDB Tests/Public/CrashTests.swift b/GRDB Tests/Public/CrashTests.swift index 91d4431e7..dcfd614f5 100644 --- a/GRDB Tests/Public/CrashTests.swift +++ b/GRDB Tests/Public/CrashTests.swift @@ -61,6 +61,8 @@ class RecordWithRowIDPrimaryKeyNotExposedInStoredDatabaseDictionary : Record { class CrashTests: GRDBTestCase { + // This method does not actually catch any crash. + // But it expresses an intent :-) func assertCrash(message: String, @noescape block: () throws -> ()) { do { try block() @@ -70,6 +72,7 @@ class CrashTests: GRDBTestCase { } } + // ========================================================================= // MARK: - Migrations @@ -292,7 +295,6 @@ class CrashTests: GRDBTestCase { RecordWithInexistingDatabaseTable().exists(db) } } - XCTFail("Crash expected") }