Skip to content

Commit 12b9566

Browse files
authored
Add availability around new Unicode test (swiftlang#39250)
1 parent 155def2 commit 12b9566

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

validation-test/stdlib/Unicode.swift.gyb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,10 @@ UnicodeScalarTests.test("init") {
211211
expectEqual("i", UnicodeScalar(UInt8(105)))
212212
expectEqual(nil, UnicodeScalar(UInt32(0xD800)))
213213
expectEqual("j", Unicode.Scalar(Int(0x6A)))
214-
expectEqual(nil, Unicode.Scalar(-0x6A))
214+
215+
if #available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *) {
216+
expectEqual(nil, Unicode.Scalar(-0x6A))
217+
}
215218
}
216219

217220
var UTF8Decoder = TestSuite("UTF8Decoder")

0 commit comments

Comments
 (0)