Skip to content

Commit 8d0a99b

Browse files
committed
wip: trying to fix a test
1 parent a0fb3b1 commit 8d0a99b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/stdlib/StringIndex.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ import Foundation
251251
StringIndexTests.test("Misaligned") {
252252
func doIt(_ str: String) {
253253
let characterIndices = Array(str.indices)
254-
let scalarIndices = Array(str.unicodeScalars.indices)
254+
let scalarIndices = Array(str.unicodeScalars.indices) + [str.endIndex]
255255
let utf8Indices = Array(str.utf8.indices)
256256
let utf16Indices = Array(str.utf16.indices)
257257

0 commit comments

Comments
 (0)