mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
reverse() => reversed()
This commit is contained in:
@@ -2051,8 +2051,8 @@ func checkHasPrefixHasSuffix(
|
||||
let expectHasPrefix = lhsNFDGraphemeClusters.startsWith(
|
||||
rhsNFDGraphemeClusters, isEquivalent: (==))
|
||||
let expectHasSuffix =
|
||||
lhsNFDGraphemeClusters.lazy.reverse().startsWith(
|
||||
rhsNFDGraphemeClusters.lazy.reverse(), isEquivalent: (==))
|
||||
lhsNFDGraphemeClusters.lazy.reversed().startsWith(
|
||||
rhsNFDGraphemeClusters.lazy.reversed(), isEquivalent: (==))
|
||||
|
||||
expectEqual(expectHasPrefix, lhs.hasPrefix(rhs), stackTrace: stackTrace)
|
||||
expectEqual(
|
||||
|
||||
Reference in New Issue
Block a user