Skip to content

Commit 82d66e3

Browse files
authored
Merge pull request #85201 from glessard/rdar158735546-again
2 parents 020e690 + 4b96f38 commit 82d66e3

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/stdlib/StringIndex.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1248,7 +1248,11 @@ suite.test("String index debugDescription backdeployment") {
12481248
str.startIndex.debugDescription == "0[any]" ||
12491249
str.startIndex.debugDescription == "0[unknown]"
12501250
)
1251-
expectEqual(str.endIndex.debugDescription, "3[utf8]")
1251+
// 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+
)
12521256
}
12531257

12541258

0 commit comments

Comments
 (0)