Skip to content

Commit bfb09e2

Browse files
committed
wip
1 parent 78cb0d6 commit bfb09e2

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

Tests/SharingGRDBTests/FetchAllTests.swift

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ struct FetchAllTests {
3131
#expect(records == (1...count).map { Record(id: $0) })
3232

3333
await withThrowingTaskGroup { group in
34-
for index in 1...(count/2) {
34+
for index in 1...(count / 2) {
3535
group.addTask {
3636
try await database.write { db in
3737
try Record.find(index * 2).delete().execute(db)
@@ -41,22 +41,25 @@ struct FetchAllTests {
4141
}
4242

4343
try await $records.load()
44-
#expect(records == (0...(count/2-1)).map { Record(id: $0 * 2 + 1) })
44+
#expect(records == (0...(count / 2 - 1)).map { Record(id: $0 * 2 + 1) })
4545
}
4646

4747
@Test func fetchFailure() {
4848
do {
4949
try database.read { db in
50-
_ = try Record
50+
_ =
51+
try Record
5152
.select { ($0.id, $0.date, #sql("\($0.optionalDate)", as: Date.self)) }
5253
.fetchAll(db)
5354
}
5455
Issue.record()
5556
} catch {
56-
#expect("\(error)".contains(
57-
"""
58-
Expected column 2 ("optionalDate") to not be NULL
59-
"""
57+
#expect(
58+
"\(error)".contains(
59+
"""
60+
Expected column 2 ("optionalDate") to not be NULL
61+
"""
62+
)
6063
)
6164
}
6265
}

0 commit comments

Comments
 (0)