Adjust test to be more resilient regarding inlining.

This commit is contained in:
Guillaume Lessard
2025-10-29 13:35:37 -07:00
parent a6cae4acd6
commit 4b96f38864

View File

@@ -1248,7 +1248,11 @@ suite.test("String index debugDescription backdeployment") {
str.startIndex.debugDescription == "0[any]" ||
str.startIndex.debugDescription == "0[unknown]"
)
expectEqual(str.endIndex.debugDescription, "3[utf8]")
// Result can be `utf8` or `unknown` depending on inlining behavior
expectTrue(
str.endIndex.debugDescription == "3[utf8]" ||
str.endIndex.debugDescription == "3[unknown]"
)
}