mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Remove useless test
This commit is contained in:
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user