Skip to content

Commit 85d9acf

Browse files
committed
[stdlib][test] Remove problematic else branches in availability checks
Testing the old behaviour can cause issues when the new availability gets properly defined. Just check the new behaviour, which is what we are doing in other stdlib tests.
1 parent 915b531 commit 85d9acf

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)