Skip to content

Commit ccfd7da

Browse files
authored
Merge pull request #75883 from benlangmuir/stdlib-61-else-branch
[stdlib][test] Remove problematic `else` branches in availability checks
2 parents 1f93fb3 + 85d9acf commit ccfd7da

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

test/stdlib/BridgedObjectDebuggerSupport.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ StringForPrintObjectTests.test("NSStringUTF8") {
8080

8181
if #available(SwiftStdlib 6.1, *) {
8282
expectEqual("🏂☃❅❆❄︎⛄️❄️\n", printed)
83-
} else {
84-
expectEqual("\"🏂☃❅❆❄︎⛄️❄️\"\n", printed)
8583
}
8684

8785
expectEqual(printed, debug)

test/stdlib/DebuggerSupport.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,11 +106,6 @@ if #available(SwiftStdlib 6.1, *) {
106106
let printed = _stringForPrintObject("hello\nworld")
107107
expectEqual(printed, "hello\nworld\n")
108108
}
109-
} else {
110-
StringForPrintObjectTests.test("String") {
111-
let printed = _stringForPrintObject("hello\nworld")
112-
expectEqual(printed, "\"hello\\nworld\"\n")
113-
}
114109
}
115110

116111
class RefCountedObj {

0 commit comments

Comments
 (0)