From 52cd98547dfe35d4723453d0ba88756c145bad73 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gwendal=20Roue=CC=81?= Date: Sat, 27 Jul 2019 15:58:33 +0200 Subject: [PATCH] Fix DerivableRequest.matching(_:) tests so that OSX 10.0 is not required --- Tests/GRDBTests/DerivableRequestTests.swift | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Tests/GRDBTests/DerivableRequestTests.swift b/Tests/GRDBTests/DerivableRequestTests.swift index 9b0798516..bc77b5ba5 100644 --- a/Tests/GRDBTests/DerivableRequestTests.swift +++ b/Tests/GRDBTests/DerivableRequestTests.swift @@ -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")