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:
Stephen Celis 2015-06-08 07:30:53 -04:00
Родитель 89d16192bb
Коммит 043137e132
2 изменённых файлов: 7 добавлений и 1 удалений

Просмотреть файл

@ -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))