isEquivalent: => by areEquivalent:

This commit is contained in:
Dave Abrahams
2016-06-07 16:09:15 -07:00
parent 5a5f19aa45
commit 4f68309b10
4 changed files with 19 additions and 19 deletions

View File

@@ -240,10 +240,10 @@ func checkHasPrefixHasSuffix(
Array(String($0).unicodeScalars)
}
let expectHasPrefix = lhsNFDGraphemeClusters.starts(
with: rhsNFDGraphemeClusters, isEquivalent: (==))
with: rhsNFDGraphemeClusters, by: (==))
let expectHasSuffix = lhsNFDGraphemeClusters.lazy.reversed()
.starts(with: rhsNFDGraphemeClusters.lazy.reversed(), isEquivalent: (==))
.starts(with: rhsNFDGraphemeClusters.lazy.reversed(), by: (==))
expectEqual(expectHasPrefix, lhs.hasPrefix(rhs), stackTrace: stackTrace)
expectEqual(
@@ -411,7 +411,7 @@ CStringTests.test("String(cString:)") {
CStringTests.test("String.decodeCString") {
do {
let s = getNullCString()
let result = String.decodeCString(UnsafePointer(s), `as`: UTF8.self)
let result = String.decodeCString(UnsafePointer(s), as: UTF8.self)
expectEmpty(result)
}
do { // repairing