Refactor entire codebase and rewrite documentation
This commit is contained in:
@@ -5,11 +5,11 @@ import DataLiteCore
|
||||
struct UUIDTests {
|
||||
@Test func testUUIDToSQLiteRawValue() {
|
||||
let uuid = UUID(uuidString: "123e4567-e89b-12d3-a456-426614174000")!
|
||||
#expect(uuid.sqliteRawValue == .text("123E4567-E89B-12D3-A456-426614174000"))
|
||||
#expect(uuid.sqliteValue == .text("123E4567-E89B-12D3-A456-426614174000"))
|
||||
}
|
||||
|
||||
@Test func testSQLiteRawValueToUUID() {
|
||||
let raw = SQLiteRawValue.text("123e4567-e89b-12d3-a456-426614174000")
|
||||
let raw = SQLiteValue.text("123e4567-e89b-12d3-a456-426614174000")
|
||||
#expect(UUID(raw) == UUID(uuidString: "123e4567-e89b-12d3-a456-426614174000"))
|
||||
|
||||
#expect(UUID(.text("invalid-uuid-string")) == nil)
|
||||
|
||||
Reference in New Issue
Block a user