mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[stdlib][test] Update string printing availability checks
The change in behaviour that these checks covered is not currently in 6.0, only in main. Update the availability check to use stdlib 6.1.
This commit is contained in:
@@ -78,8 +78,10 @@ StringForPrintObjectTests.test("NSStringUTF8") {
|
||||
expectEqual("🏂☃❅❆❄︎⛄️❄️", String(reflecting: nsUTF16))
|
||||
expectEqual("\"🏂☃❅❆❄︎⛄️❄️\"", String(reflecting: newNSUTF16))
|
||||
|
||||
if #available(SwiftStdlib 6.0, *) {
|
||||
if #available(SwiftStdlib 6.1, *) {
|
||||
expectEqual("🏂☃❅❆❄︎⛄️❄️\n", printed)
|
||||
} else {
|
||||
expectEqual("\"🏂☃❅❆❄︎⛄️❄️\"\n", printed)
|
||||
}
|
||||
|
||||
expectEqual(printed, debug)
|
||||
|
||||
Reference in New Issue
Block a user