mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
isEquivalent: => by areEquivalent:
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user