Add CI/CD configuration and API documentation

This commit is contained in:
2026-07-01 21:40:53 +08:00
commit c590135d68
4168 changed files with 740252 additions and 0 deletions
@@ -0,0 +1,23 @@
import XCTest
import CoreGraphics
import GRDB
class CGFloatTests: GRDBTestCase {
func testCGFLoat() throws {
let dbQueue = try makeDatabaseQueue()
try dbQueue.inDatabase { db in
try db.execute(sql: "CREATE TABLE points (x DOUBLE, y DOUBLE)")
let x: CGFloat = 1
let y: CGFloat? = nil
try db.execute(sql: "INSERT INTO points VALUES (?,?)", arguments: [x, y])
let row = try Row.fetchOne(db, sql: "SELECT * FROM points")!
let fetchedX: CGFloat = row["x"]
let fetchedY: CGFloat? = row["y"]
XCTAssertEqual(x, fetchedX)
XCTAssertTrue(fetchedY == nil)
}
}
}