Skip to content

Commit 3c33145

Browse files
committed
[test] Add availability guard on Character behavior test
1 parent 7f1c139 commit 3c33145

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/stdlib/StringBridge.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,8 @@ StringBridgeTests.test("Tagged NSString") {
7777

7878
func returnOne<T>(_ t: T) -> Int { return 1 }
7979
StringBridgeTests.test("Character from NSString") {
80+
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else { return }
81+
8082
// NOTE: Using hard-coded literals to directly construct NSStrings
8183
let ns1 = "A" as NSString
8284
let ns2 = "A\u{301}" as NSString

0 commit comments

Comments
 (0)