@@ -31,28 +31,30 @@ private func test<T: NSObject & NSCoding>(type: T.Type) {
31
31
// Test all the classes listed in SwiftNativeNSXXXBase.mm.gyb except for
32
32
// NSEnumerator (which doesn't conform to NSCoding).
33
33
34
- testSuite. test ( " NSArray " ) {
35
- test ( type: NSArray . self)
36
- }
34
+ if #available( iOS 9999 , macOS 9999 , tvOS 9999 , watchOS 9999 , * ) {
35
+ testSuite. test ( " NSArray " ) {
36
+ test ( type: NSArray . self)
37
+ }
37
38
38
- testSuite. test ( " NSDictionary " ) {
39
- test ( type: NSDictionary . self)
40
- }
39
+ testSuite. test ( " NSDictionary " ) {
40
+ test ( type: NSDictionary . self)
41
+ }
41
42
42
- testSuite. test ( " NSSet " ) {
43
- test ( type: NSSet . self)
44
- }
43
+ testSuite. test ( " NSSet " ) {
44
+ test ( type: NSSet . self)
45
+ }
45
46
46
- testSuite. test ( " NSString " ) {
47
- test ( type: NSString . self)
48
- }
47
+ testSuite. test ( " NSString " ) {
48
+ test ( type: NSString . self)
49
+ }
49
50
50
- testSuite. test ( " NSData " ) {
51
- test ( type: NSData . self)
52
- }
51
+ testSuite. test ( " NSData " ) {
52
+ test ( type: NSData . self)
53
+ }
53
54
54
- testSuite. test ( " NSIndexSet " ) {
55
- test ( type: NSIndexSet . self)
55
+ testSuite. test ( " NSIndexSet " ) {
56
+ test ( type: NSIndexSet . self)
57
+ }
56
58
}
57
59
58
60
runAllTests ( )
0 commit comments