mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Adjust test to be more resilient regarding inlining.
This commit is contained in:
@@ -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]"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user