mirror of
https://github.com/groue/GRDB.swift
synced 2026-11-28 04:24:20 +00:00
Move Sequence.allSatisfy where it is used: tests
This commit is contained in:
1 parent
f582683f20
commit
f7712473aa
2 files changed
+8
-8
No files matched your search
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user