2
2
//
3
3
// This source file is part of the Swift open source project
4
4
//
5
- // Copyright (c) 2020-2022 Apple Inc. and the Swift project authors
5
+ // Copyright (c) 2020-2023 Apple Inc. and the Swift project authors
6
6
// Licensed under Apache License v2.0 with Runtime Library Exception
7
7
//
8
8
// See http://swift.org/LICENSE.txt for license information
@@ -26,11 +26,11 @@ final class PackageCollectionsModelTests: XCTestCase {
26
26
toolsVersion: toolsVersion, packageName: " FooBar " , targets: targets, products: products, minimumPlatformVersions: nil
27
27
) ]
28
28
let versions : [ PackageCollectionsModel . Package . Version ] = [
29
- . init( version: . init( stringLiteral: " 1.2.0 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , createdAt: nil ) ,
30
- . init( version: . init( stringLiteral: " 2.0.1 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , createdAt: nil ) ,
31
- . init( version: . init( stringLiteral: " 2.1.0-beta.3 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , createdAt: nil ) ,
32
- . init( version: . init( stringLiteral: " 2.1.0 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , createdAt: nil ) ,
33
- . init( version: . init( stringLiteral: " 3.0.0-beta.1 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , createdAt: nil ) ,
29
+ . init( version: . init( stringLiteral: " 1.2.0 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , author : nil , createdAt: nil ) ,
30
+ . init( version: . init( stringLiteral: " 2.0.1 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , author : nil , createdAt: nil ) ,
31
+ . init( version: . init( stringLiteral: " 2.1.0-beta.3 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , author : nil , createdAt: nil ) ,
32
+ . init( version: . init( stringLiteral: " 2.1.0 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , author : nil , createdAt: nil ) ,
33
+ . init( version: . init( stringLiteral: " 3.0.0-beta.1 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , author : nil , createdAt: nil ) ,
34
34
]
35
35
36
36
XCTAssertEqual ( " 2.1.0 " , versions. latestRelease? . version. description)
@@ -45,8 +45,8 @@ final class PackageCollectionsModelTests: XCTestCase {
45
45
toolsVersion: toolsVersion, packageName: " FooBar " , targets: targets, products: products, minimumPlatformVersions: nil
46
46
) ]
47
47
let versions : [ PackageCollectionsModel . Package . Version ] = [
48
- . init( version: . init( stringLiteral: " 2.1.0-beta.3 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , createdAt: nil ) ,
49
- . init( version: . init( stringLiteral: " 3.0.0-beta.1 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , createdAt: nil ) ,
48
+ . init( version: . init( stringLiteral: " 2.1.0-beta.3 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , author : nil , createdAt: nil ) ,
49
+ . init( version: . init( stringLiteral: " 3.0.0-beta.1 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , author : nil , createdAt: nil ) ,
50
50
]
51
51
52
52
XCTAssertNil ( versions. latestRelease)
@@ -61,9 +61,9 @@ final class PackageCollectionsModelTests: XCTestCase {
61
61
toolsVersion: toolsVersion, packageName: " FooBar " , targets: targets, products: products, minimumPlatformVersions: nil
62
62
) ]
63
63
let versions : [ PackageCollectionsModel . Package . Version ] = [
64
- . init( version: . init( stringLiteral: " 1.2.0 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , createdAt: nil ) ,
65
- . init( version: . init( stringLiteral: " 2.0.1 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , createdAt: nil ) ,
66
- . init( version: . init( stringLiteral: " 2.1.0 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , createdAt: nil ) ,
64
+ . init( version: . init( stringLiteral: " 1.2.0 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , author : nil , createdAt: nil ) ,
65
+ . init( version: . init( stringLiteral: " 2.0.1 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , author : nil , createdAt: nil ) ,
66
+ . init( version: . init( stringLiteral: " 2.1.0 " ) , title: nil , summary: nil , manifests: manifests, defaultToolsVersion: toolsVersion, verifiedCompatibility: nil , license: nil , author : nil , createdAt: nil ) ,
67
67
]
68
68
69
69
XCTAssertEqual ( " 2.1.0 " , versions. latestRelease? . version. description)
0 commit comments