Skip to content

Commit c448314

Browse files
Fixed linting issues.
1 parent b715493 commit c448314

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Tests/SQLiteTests/FoundationTests.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ class FoundationTests: XCTestCase {
2525
let uuid = UUID.fromDatatypeValue(string)
2626
XCTAssertEqual(UUID(uuidString: "4ABE10C9-FF12-4CD4-90C1-4B429001BAD3"), uuid)
2727
}
28-
28+
2929
func testUUIDInsert() {
30-
struct Test:Codable{
31-
var uuid:UUID
32-
var string:String
30+
struct Test: Codable {
31+
var uuid: UUID
32+
var string: String
3333
}
3434
let testUUID = UUID()
3535
let testValue = Test(uuid: testUUID, string: "value")
@@ -39,16 +39,16 @@ class FoundationTests: XCTestCase {
3939
t.column(string)
4040
}
4141
)
42-
42+
4343
let iQuery = try! table.insert(testValue)
4444
try! db.run(iQuery)
45-
45+
4646
let fQuery = table.filter(uuid == testUUID)
47-
if let result = try! db.pluck(fQuery){
47+
if let result = try! db.pluck(fQuery) {
4848
let testValueReturned = Test(uuid: result[uuid], string: result[string])
4949
XCTAssertEqual(testUUID, testValueReturned.uuid)
50-
}else{
51-
XCTFail()
50+
} else {
51+
XCTFail("Search for uuid failed")
5252
}
5353
}
5454
}

0 commit comments

Comments
 (0)