From 25584a130c2ed005af26ece755b33c2fdb76f6bd Mon Sep 17 00:00:00 2001 From: tanner0101 Date: Wed, 5 Feb 2020 15:56:39 -0500 Subject: [PATCH] update to latest operator --- Sources/Fluent/Exports.swift | 5 ++--- Tests/FluentTests/FluentOperatorTests.swift | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Sources/Fluent/Exports.swift b/Sources/Fluent/Exports.swift index 67a0e76e..2d7d830b 100644 --- a/Sources/Fluent/Exports.swift +++ b/Sources/Fluent/Exports.swift @@ -1,8 +1,7 @@ @_exported import FluentKit infix operator ~~ -infix operator !~ infix operator =~ -infix operator !~= -infix operator !~~ +infix operator !~ infix operator !=~ +infix operator !~= diff --git a/Tests/FluentTests/FluentOperatorTests.swift b/Tests/FluentTests/FluentOperatorTests.swift index 36cfd01b..606babd3 100644 --- a/Tests/FluentTests/FluentOperatorTests.swift +++ b/Tests/FluentTests/FluentOperatorTests.swift @@ -15,7 +15,7 @@ final class FluentOperatorTests: XCTestCase { .filter(\.$name ~= "art") // name doesn't contain string anywhere, prefix, suffix _ = Planet.query(on: db) - .filter(\.$name !~~ "art") + .filter(\.$name !~ "art") _ = Planet.query(on: db) .filter(\.$name !=~ "art") _ = Planet.query(on: db)