Skip to content

Commit 5f65686

Browse files
committed
[test] Replace some more 9999 availabilities with SwiftStdlib 5.6
1 parent 5d6b0ba commit 5f65686

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/stdlib/CodableTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ class TestCodable : TestCodableSuper {
480480
}
481481
}
482482

483-
@available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *)
483+
@available(SwiftStdlib 5.6, *)
484484
func test_Dictionary_JSON() {
485485
enum X: String, Codable { case a, b }
486486
enum Y: String, Codable, CodingKeyRepresentable { case a, b }
@@ -1054,7 +1054,7 @@ if #available(macOS 10.12, iOS 10.0, watchOS 3.0, tvOS 10.0, *) {
10541054
tests["test_URLComponents_Plist"] = TestCodable.test_URLComponents_Plist
10551055
}
10561056

1057-
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
1057+
if #available(SwiftStdlib 5.6, *) {
10581058
tests["test_Dictionary_JSON"] = TestCodable.test_Dictionary_JSON
10591059
}
10601060

test/stdlib/RawRepresentable-tricky-hashing.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ suite.test("hashValue forwarding") {
107107
//
108108
// See https://github.com/apple/swift/pull/39155
109109

110-
if #available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *) {
110+
if #available(SwiftStdlib 5.6, *) {
111111
let r = CustomRawRepresentable2(rawValue: Bogus())!
112112
expectEqual(r.hashValue, 23.hashValue)
113113
}

validation-test/stdlib/Unicode.swift.gyb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ UnicodeScalarTests.test("init") {
212212
expectEqual(nil, UnicodeScalar(UInt32(0xD800)))
213213
expectEqual("j", Unicode.Scalar(Int(0x6A)))
214214

215-
if #available(macOS 9999, iOS 9999, tvOS 9999, watchOS 9999, *) {
215+
if #available(SwiftStdlib 5.6, *) {
216216
expectEqual(nil, Unicode.Scalar(-0x6A))
217217
}
218218
}

0 commit comments

Comments
 (0)