Move Sequence.allSatisfy where it is used: tests

This commit is contained in:
Gwendal Roué committed 2018-10-29 12:27:39 +01:00
1 parent f582683f20
commit f7712473aa
2 files changed
+8 -8

No files matched your search

-8
View File
@@ -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
+8
View File
@@ -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