Remove useless test

This commit is contained in:
Gwendal Roué committed 2024-02-18 12:41:34 +01:00
1 parent fb0866c6fa
commit 0e1220b048
1 file changed
-15
@@ -342,19 +342,4 @@ class DatabaseFunctionTests: GRDBTestCase {
}
}
}
// MARK: - Misc
func testFunctionsAreClosures() throws {
let dbQueue = try makeDatabaseQueue()
var x = 123
let fn = DatabaseFunction("f", argumentCount: 0) { dbValues in
return x
}
try dbQueue.inDatabase { db in
db.add(function: fn)
x = 321
XCTAssertEqual(try Int.fetchOne(db, sql: "SELECT f()")!, 321)
}
}
}