File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments