We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a0fb3b1 commit 8d0a99bCopy full SHA for 8d0a99b
test/stdlib/StringIndex.swift
@@ -251,7 +251,7 @@ import Foundation
251
StringIndexTests.test("Misaligned") {
252
func doIt(_ str: String) {
253
let characterIndices = Array(str.indices)
254
- let scalarIndices = Array(str.unicodeScalars.indices)
+ let scalarIndices = Array(str.unicodeScalars.indices) + [str.endIndex]
255
let utf8Indices = Array(str.utf8.indices)
256
let utf16Indices = Array(str.utf16.indices)
257
0 commit comments