mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
New indexing model: WIP fixed compile issues in various stdlib tests
This commit is contained in:
@@ -318,7 +318,11 @@ StringTests.test("CompareStringsWithUnpairedSurrogates")
|
||||
let acceptor = "\u{1f601}\u{1f602}\u{1f603}"
|
||||
|
||||
expectEqual("\u{fffd}\u{1f602}\u{fffd}",
|
||||
acceptor[donor.startIndex.advanced(by: 1)..<donor.startIndex.advanced(by: 5)])
|
||||
acceptor[
|
||||
donor.advance(donor.startIndex, by: 1) ..<
|
||||
donor.advance(donor.startIndex, by: 5)
|
||||
]
|
||||
)
|
||||
}
|
||||
|
||||
var CStringTests = TestSuite("CStringTests")
|
||||
|
||||
Reference in New Issue
Block a user