mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-29 04:24:21 +00:00
Fix test for batch deletion of Identifiable type with Optional ID
This commit is contained in:
1 parent
8c361acd7f
commit
f54467af3c
1 file changed
+3
-1
@@ -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, """
|
||||
|
||||
Reference in new issue
Block a user