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 {
25
25
let uuid = UUID . fromDatatypeValue ( string)
26
26
XCTAssertEqual ( UUID ( uuidString: " 4ABE10C9-FF12-4CD4-90C1-4B429001BAD3 " ) , uuid)
27
27
}
28
-
28
+
29
29
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
33
33
}
34
34
let testUUID = UUID ( )
35
35
let testValue = Test ( uuid: testUUID, string: " value " )
@@ -39,16 +39,16 @@ class FoundationTests: XCTestCase {
39
39
t. column ( string)
40
40
}
41
41
)
42
-
42
+
43
43
let iQuery = try ! table. insert ( testValue)
44
44
try ! db. run ( iQuery)
45
-
45
+
46
46
let fQuery = table. filter ( uuid == testUUID)
47
- if let result = try ! db. pluck ( fQuery) {
47
+ if let result = try ! db. pluck ( fQuery) {
48
48
let testValueReturned = Test ( uuid: result [ uuid] , string: result [ string] )
49
49
XCTAssertEqual ( testUUID, testValueReturned. uuid)
50
- } else {
51
- XCTFail ( )
50
+ } else {
51
+ XCTFail ( " Search for uuid failed " )
52
52
}
53
53
}
54
54
}
You can’t perform that action at this time.
0 commit comments