Coverage improvements
Because "age" is already an Expression<Int?>, many test paths weren't being hit. Signed-off-by: Stephen Celis <stephen@stephencelis.com>
This commit is contained in:
Родитель
89d16192bb
Коммит
043137e132
|
@ -454,7 +454,7 @@ class ExpressionTests: SQLiteTestCase {
|
|||
}
|
||||
|
||||
let email2 = Expression<String?>("email")
|
||||
let age2 = Expression<Int?>("age")
|
||||
let age2 = Expression<Int>("age")
|
||||
let salary2 = Expression<Double?>("salary")
|
||||
let admin2 = Expression<Bool?>("admin")
|
||||
|
||||
|
|
|
@ -14,6 +14,12 @@ class FTSTests: SQLiteTestCase {
|
|||
AssertSQL("CREATE VIRTUAL TABLE \"emails\" USING fts4(\"subject\", \"body\")")
|
||||
}
|
||||
|
||||
func test_createVtable_usingFts4_withSimpleTokenizer_createsVirtualTableWithTokenizer() {
|
||||
db.create(vtable: emails, using: fts4([subject, body], tokenize: .Simple))
|
||||
|
||||
AssertSQL("CREATE VIRTUAL TABLE \"emails\" USING fts4(\"subject\", \"body\", tokenize=simple)")
|
||||
}
|
||||
|
||||
func test_createVtable_usingFts4_withPorterTokenizer_createsVirtualTableWithTokenizer() {
|
||||
db.create(vtable: emails, using: fts4([subject, body], tokenize: .Porter))
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче