We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcd8dd7 commit 0246cbdCopy full SHA for 0246cbd
Tests/SQLiteTests/Typed/QueryIntegrationTests.swift
@@ -272,8 +272,8 @@ class QueryIntegrationTests: SQLiteTestCase {
272
// https://github.com/stephencelis/SQLite.swift/issues/285
273
func test_order_by_random() throws {
274
try insertUsers(["a", "b", "c'"])
275
- let result = Array(try db.prepare(users.select(email).order(SQLite.Expression<Int>.random()).limit(1)))
276
- XCTAssertEqual(1, result.count)
+ let resultCount = try db.prepare(users.select(email).order(SQLite.Expression<Int>.random()).limit(1)).count
+ XCTAssertEqual(1, resultCount)
277
}
278
279
func test_with_recursive() throws {
0 commit comments