Refactor entire codebase and rewrite documentation
This commit is contained in:
parent
b4e9755c15
commit
8e471f2b9f
74 changed files with 3341 additions and 4085 deletions
|
|
@ -4,14 +4,14 @@ import DataLiteCore
|
|||
|
||||
struct StringTests {
|
||||
@Test func testStringToSQLiteRawValue() {
|
||||
#expect("Hello, SQLite!".sqliteRawValue == .text("Hello, SQLite!"))
|
||||
#expect("Hello, SQLite!".sqliteValue == .text("Hello, SQLite!"))
|
||||
}
|
||||
|
||||
@Test func testSQLiteRawValueToString() {
|
||||
#expect(String(SQLiteRawValue.text("Hello, SQLite!")) == "Hello, SQLite!")
|
||||
#expect(String(SQLiteValue.text("Hello, SQLite!")) == "Hello, SQLite!")
|
||||
|
||||
#expect(String(SQLiteRawValue.int(42)) == nil)
|
||||
#expect(String(SQLiteRawValue.blob(Data([0x01, 0x02]))) == nil)
|
||||
#expect(String(SQLiteRawValue.null) == nil)
|
||||
#expect(String(SQLiteValue.int(42)) == nil)
|
||||
#expect(String(SQLiteValue.blob(Data([0x01, 0x02]))) == nil)
|
||||
#expect(String(SQLiteValue.null) == nil)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue