diff --git a/GRDB/Utils/Utils.swift b/GRDB/Utils/Utils.swift index fb497951d..fa808dca4 100644 --- a/GRDB/Utils/Utils.swift +++ b/GRDB/Utils/Utils.swift @@ -69,11 +69,3 @@ extension Array { } } } - -#if !swift(>=4.2) -extension Sequence { - func allSatisfy(_ predicate: (Self.Element) throws -> Bool) rethrows -> Bool { - return try !contains(where: { try !predicate($0) }) - } -} -#endif diff --git a/Tests/GRDBTests/GRDBTestCase.swift b/Tests/GRDBTests/GRDBTestCase.swift index 9989a9882..60fa4f0ff 100644 --- a/Tests/GRDBTests/GRDBTestCase.swift +++ b/Tests/GRDBTests/GRDBTestCase.swift @@ -166,3 +166,11 @@ class GRDBTestCase: XCTestCase { } } } + +#if !swift(>=4.2) +extension Sequence { + func allSatisfy(_ predicate: (Self.Element) throws -> Bool) rethrows -> Bool { + return try !contains(where: { try !predicate($0) }) + } +} +#endif