@@ -71,7 +71,11 @@ class SwiftPackageFileAnalyzerTests: XCTestCase {
7171 packageDescription = SwiftPackageDescription (
7272 defaultLocalization: " en-us " ,
7373 name: " New Name " ,
74- platforms: [ . init( name: " iOS " , version: " 15.0 " ) , . init( name: " visionOS " , version: " 1.0 " ) ] ,
74+ platforms: [
75+ . init( name: " iOS " , version: " 15.0 " ) ,
76+ . init( name: " macOS " , version: " 10.0 " ) ,
77+ . init( name: " visionOS " , version: " 1.0 " )
78+ ] ,
7579 products: [
7680 . init( name: " New Library " , targets: [ " New Target " ] ) ,
7781 . init( name: " Some Library " , targets: [ " Some Target " , " New Target " ] )
@@ -98,7 +102,11 @@ class SwiftPackageFileAnalyzerTests: XCTestCase {
98102 packageDescription = SwiftPackageDescription (
99103 defaultLocalization: " nl-nl " ,
100104 name: " Old Name " ,
101- platforms: [ . init( name: " iOS " , version: " 12.0 " ) , . init( name: " macOS " , version: " 10.0 " ) ] ,
105+ platforms: [
106+ . init( name: " iOS " , version: " 12.0 " ) ,
107+ . init( name: " macOS " , version: " 10.0 " ) ,
108+ . init( name: " driverKit " , version: " 1.0 " )
109+ ] ,
102110 products: [
103111 . init( name: " Old Library " , targets: [ " Old Target " ] ) ,
104112 . init( name: " Some Library " , targets: [ " Some Target " , " Old Target " ] )
@@ -166,14 +174,14 @@ class SwiftPackageFileAnalyzerTests: XCTestCase {
166174 ) ,
167175 . init(
168176 changeType: . modification(
169- oldDescription: " platforms: [.iOS(12.0), .macOS(10.0)] " ,
170- newDescription: " platforms: [.iOS(15.0), .visionOS(1.0)] "
177+ oldDescription: " platforms: [.iOS(12.0), .macOS(10.0), .driverKit(1.0) ] " ,
178+ newDescription: " platforms: [.iOS(15.0), .macOS(10.0), . visionOS(1.0)] "
171179 ) ,
172180 parentPath: " Package.swift " ,
173181 listOfChanges: [
174182 " Added .visionOS(1.0) " ,
175183 " Changed from .iOS(12.0) to .iOS(15.0) " ,
176- " Removed .macOS(10 .0) "
184+ " Removed .driverKit(1 .0) "
177185 ]
178186 ) ,
179187 . init(
0 commit comments