From f54467af3c44d21750ed246f8d8d63363d2f01bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Mon, 21 Jun 2021 18:26:35 +0200 Subject: [PATCH] Fix test for batch deletion of Identifiable type with Optional ID --- Tests/GRDBTests/TableTests.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Tests/GRDBTests/TableTests.swift b/Tests/GRDBTests/TableTests.swift index b584817dd..86f9761bc 100644 --- a/Tests/GRDBTests/TableTests.swift +++ b/Tests/GRDBTests/TableTests.swift @@ -799,6 +799,7 @@ class TableTests: GRDBTestCase { } if #available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6, *) { + // Non-optional ID struct Country: Identifiable { var id: String } try Table("country").deleteOne(db, id: "FR") @@ -813,7 +814,8 @@ class TableTests: GRDBTestCase { } if #available(OSX 10.15, iOS 13.0, tvOS 13.0, watchOS 6, *) { - struct Country: Identifiable { var id: String } + // Optional ID + struct Country: Identifiable { var id: String? } try Table("country").deleteOne(db, id: "FR") XCTAssertEqual(lastSQLQuery, """