mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-26 04:07:50 +00:00
Fix DerivableRequest.matching(_:) tests so that OSX 10.0 is not required
This commit is contained in:
1 parent
5cced46a61
commit
52cd98547d
1 file changed
+4
-4
@@ -340,7 +340,7 @@ class DerivableRequestTests: GRDBTestCase {
|
||||
do {
|
||||
sqlQueries.removeAll()
|
||||
let title = try Book.all()
|
||||
.matchingFts4(FTS3Pattern(matchingAllTokensIn: "moby dick"))
|
||||
.matchingFts4(FTS3Pattern(rawPattern: "moby dick"))
|
||||
.fetchOne(db)
|
||||
.map { $0.title }
|
||||
XCTAssertEqual(title, "Moby-Dick")
|
||||
@@ -352,7 +352,7 @@ class DerivableRequestTests: GRDBTestCase {
|
||||
|
||||
sqlQueries.removeAll()
|
||||
let fullName = try Author
|
||||
.joining(required: Author.books.matchingFts4(FTS3Pattern(matchingAllTokensIn: "moby dick")))
|
||||
.joining(required: Author.books.matchingFts4(FTS3Pattern(rawPattern: "moby dick")))
|
||||
.fetchOne(db)
|
||||
.map { $0.fullName }
|
||||
XCTAssertEqual(fullName, "Herman Melville")
|
||||
@@ -369,7 +369,7 @@ class DerivableRequestTests: GRDBTestCase {
|
||||
do {
|
||||
sqlQueries.removeAll()
|
||||
let title = try Book.all()
|
||||
.matchingFts5(FTS3Pattern(matchingAllTokensIn: "cote swann"))
|
||||
.matchingFts5(FTS3Pattern(rawPattern: "cote swann"))
|
||||
.fetchOne(db)
|
||||
.map { $0.title }
|
||||
XCTAssertEqual(title, "Du côté de chez Swann")
|
||||
@@ -381,7 +381,7 @@ class DerivableRequestTests: GRDBTestCase {
|
||||
|
||||
sqlQueries.removeAll()
|
||||
let fullName = try Author
|
||||
.joining(required: Author.books.matchingFts5(FTS3Pattern(matchingAllTokensIn: "cote swann")))
|
||||
.joining(required: Author.books.matchingFts5(FTS3Pattern(rawPattern: "cote swann")))
|
||||
.fetchOne(db)
|
||||
.map { $0.fullName }
|
||||
XCTAssertEqual(fullName, "Marcel Proust")
|
||||
|
||||
Reference in new issue
Block a user