Skip to content

Commit 8fcc94f

Browse files
authored
Merge pull request #26885 from lorentey/nein-nein-nein-nein
[test] Denineninenineninify behavioral tests added for 5.1
2 parents 3321794 + b90e2ef commit 8fcc94f

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

validation-test/Evolution/Inputs/opaque_archetypes_change_underlying_type.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public struct Pair : P {
1919
}
2020
#endif
2121

22-
@available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *)
22+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
2323
public func resilientFunction() -> some P {
2424
#if BEFORE
2525
return Int(5)
@@ -28,12 +28,12 @@ public func resilientFunction() -> some P {
2828
#endif
2929
}
3030

31-
@available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *)
31+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
3232
public func expectedResult() -> Int {
3333
return resilientFunction().getValue()
3434
}
3535

36-
@available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *)
36+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
3737
public func expectedSize() -> Int {
3838
return MemoryLayout.size(ofValue: resilientFunction())
3939
}
@@ -42,7 +42,7 @@ public func expectedSize() -> Int {
4242
public struct Container {
4343
public init() {}
4444

45-
@available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *)
45+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
4646
public var property : some P {
4747
get {
4848
#if BEFORE
@@ -53,12 +53,12 @@ public struct Container {
5353
}
5454
}
5555

56-
@available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *)
56+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
5757
public func expectedResult() -> Int {
5858
return property.getValue()
5959
}
6060

61-
@available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *)
61+
@available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *)
6262
public func expectedSize() -> Int {
6363
return MemoryLayout.size(ofValue: property)
6464
}

validation-test/Evolution/test_opaque_archetypes_change_underlying_type.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import StdlibUnittest
77
var OpaqueArchetypes = TestSuite("OpaqueArchetypes")
88

99
OpaqueArchetypes.test("test1") {
10-
if #available(iOS 9999, macOS 9999, tvOS 9999, watchOS 9999, *) {
10+
if #available(macOS 15.0, iOS 13.0, watchOS 6.0, tvOS 13.0, *) {
1111
let o = resilientFunction()
1212
expectEqual(o.getValue(), expectedResult())
1313
expectEqual(MemoryLayout.size(ofValue: o), expectedSize())

validation-test/Reflection/existentials_objc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Foundation
1616

1717
import SwiftReflectionTest
1818

19-
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
19+
if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) {
2020
// Imported class wrapped in AnyObject
2121

2222
// CHECK: Type reference:

validation-test/stdlib/Dictionary.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3000,7 +3000,7 @@ DictionaryTestSuite.test("BridgedFromObjC.Verbatim.RemoveAll") {
30003000
}
30013001

30023002
DictionaryTestSuite.test("BridgedFromObjC.Nonverbatim.RemoveAll") {
3003-
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
3003+
if #available(macOS 15.0, iOS 13.0, watchOS 6.0, tvOS 13.0, *) {
30043004
// Identity of empty dictionaries changed in
30053005
// https://github.com/apple/swift/pull/22527
30063006
var d = getBridgedNonverbatimDictionary([:])
@@ -3295,7 +3295,7 @@ DictionaryTestSuite.test("BridgedFromObjC.Verbatim.EqualityTest_Empty") {
32953295
}
32963296

32973297
DictionaryTestSuite.test("BridgedFromObjC.Nonverbatim.EqualityTest_Empty") {
3298-
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else {
3298+
guard #available(macOS 15.0, iOS 13.0, watchOS 6.0, tvOS 13.0, *) else {
32993299
// Identity of empty dictionaries changed in
33003300
// https://github.com/apple/swift/pull/22527
33013301
return

validation-test/stdlib/Set.swift

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1976,7 +1976,7 @@ SetTestSuite.test("BridgedFromObjC.Verbatim.RemoveAll") {
19761976
}
19771977

19781978
SetTestSuite.test("BridgedFromObjC.Nonverbatim.RemoveAll") {
1979-
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
1979+
if #available(macOS 15.0, iOS 13.0, watchOS 6.0, tvOS 13.0, *) {
19801980
// Identity of empty sets changed in https://github.com/apple/swift/pull/22527
19811981
var s = getBridgedNonverbatimSet([])
19821982
expectTrue(isNativeSet(s))
@@ -2168,7 +2168,7 @@ SetTestSuite.test("BridgedFromObjC.Verbatim.EqualityTest_Empty") {
21682168
}
21692169

21702170
SetTestSuite.test("BridgedFromObjC.Nonverbatim.EqualityTest_Empty") {
2171-
guard #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) else {
2171+
guard #available(macOS 15.0, iOS 13.0, watchOS 6.0, tvOS 13.0, *) else {
21722172
// Identity of empty sets changed in https://github.com/apple/swift/pull/22527
21732173
return
21742174
}
@@ -4667,7 +4667,7 @@ SetTestSuite.test("IndexValidation.RemoveAt.AfterGrow") {
46674667
}
46684668

46694669
#if _runtime(_ObjC)
4670-
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
4670+
if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) {
46714671
// https://github.com/apple/swift/pull/23174
46724672
SetTestSuite.test("ForcedNonverbatimBridge.Trap.String")
46734673
.skip(.custom(
@@ -4690,7 +4690,7 @@ if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
46904690
#endif
46914691

46924692
#if _runtime(_ObjC)
4693-
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
4693+
if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) {
46944694
// https://github.com/apple/swift/pull/23174
46954695
SetTestSuite.test("ForcedNonverbatimBridge.Trap.Int")
46964696
.skip(.custom(
@@ -4822,7 +4822,7 @@ SetTestSuite.test("ForcedVerbatimDowncast.Trap.Int")
48224822
#endif
48234823

48244824
#if _runtime(_ObjC)
4825-
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
4825+
if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) {
48264826
// https://github.com/apple/swift/pull/23174
48274827
SetTestSuite.test("ForcedBridgingNonverbatimDowncast.Trap.String")
48284828
.skip(.custom(
@@ -4846,7 +4846,7 @@ if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
48464846
#endif
48474847

48484848
#if _runtime(_ObjC)
4849-
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
4849+
if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) {
48504850
// https://github.com/apple/swift/pull/23174
48514851
SetTestSuite.test("ForcedBridgingNonverbatimDowncast.Trap.Int")
48524852
.skip(.custom(
@@ -4871,7 +4871,7 @@ if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
48714871
#endif
48724872

48734873
#if _runtime(_ObjC)
4874-
if #available(macOS 9999, iOS 9999, watchOS 9999, tvOS 9999, *) {
4874+
if #available(macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0, *) {
48754875
// https://github.com/apple/swift/pull/23683
48764876
SetTestSuite.test("Upcast.StringEqualityMismatch") {
48774877
// Upcasting from NSString to String keys changes their concept of equality,

0 commit comments

Comments
 (0)