mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib] Make String.UTF8View bidirectional
This is a step along the way toward handling backward-compatiblity of UTF8View slicing and preventing inadvertent creation of String instances that keep inaccessible memory alive.
This commit is contained in:
@@ -728,8 +728,7 @@ tests.test("String.UTF8View/Collection")
|
||||
.forEach(in: utfTests) {
|
||||
test in
|
||||
|
||||
// FIXME(ABI)#72 : should be `checkBidirectionalCollection`.
|
||||
checkForwardCollection(test.utf8, test.string.utf8) { $0 == $1 }
|
||||
checkBidirectionalCollection(test.utf8, test.string.utf8) { $0 == $1 }
|
||||
}
|
||||
|
||||
tests.test("String.UTF16View/BidirectionalCollection")
|
||||
|
||||
Reference in New Issue
Block a user