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 a6cae4a commit 3509431Copy full SHA for 3509431
test/stdlib/StringIndex.swift
@@ -1248,7 +1248,11 @@ suite.test("String index debugDescription backdeployment") {
1248
str.startIndex.debugDescription == "0[any]" ||
1249
str.startIndex.debugDescription == "0[unknown]"
1250
)
1251
- expectEqual(str.endIndex.debugDescription, "3[utf8]")
+ // Result can be `utf8` or `unknown` depending on inlining behavior
1252
+ expectTrue(
1253
+ str.endIndex.debugDescription, "3[utf8]") ||
1254
+ str.endIndex.debugDescription, "3[unknown]")
1255
+ )
1256
}
1257
1258
0 commit comments