Fix test for batch deletion of Identifiable type with Optional ID

This commit is contained in:
Gwendal Roué committed 2021-06-21 18:26:35 +02:00
1 parent 8c361acd7f
commit f54467af3c
1 file changed
+3 -1
+3 -1
View File
@@ -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>("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>("country").deleteOne(db, id: "FR")
XCTAssertEqual(lastSQLQuery, """