Skip to content

Commit

Permalink
Merge pull request #41 from SwiftPackageIndex/swift-5.10
Browse files Browse the repository at this point in the history
Switch latestRelease to 5.10
  • Loading branch information
finestructure committed Mar 7, 2024
2 parents ac6611f + ebc3624 commit a6de765
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Sources/SPIManifest/SwiftVersion.swift
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public enum SwiftVersion: ShortVersion, Codable, CaseIterable {
case v5_9 = "5.9"
case v5_10 = "5.10"

public static var latestRelease: Self { .v5_9 }
public static var latestRelease: Self { .v5_10 }

public init?(major: Int, minor: Int) {
self.init(rawValue: "\(major).\(minor)")
Expand Down
5 changes: 3 additions & 2 deletions Tests/SPIManifestTests/ManifestTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -331,8 +331,9 @@ class ManifestTests: XCTestCase {
// MUT
XCTAssertEqual(m.documentationTargets(platform: .watchOS, swiftVersion: .v5_7), ["t3"])
XCTAssertEqual(m.documentationTargets(platform: .macosSpm, swiftVersion: .v5_8), nil)
XCTAssertEqual(m.documentationTargets(platform: .macosSpm, swiftVersion: .v5_9), ["t0"])
XCTAssertEqual(m.documentationTargets(platform: .watchOS, swiftVersion: .v5_10), nil)
XCTAssertEqual(m.documentationTargets(platform: .macosSpm, swiftVersion: .v5_9), nil)
XCTAssertEqual(m.documentationTargets(platform: .macosSpm, swiftVersion: .v5_10), ["t0"])
XCTAssertEqual(m.documentationTargets(platform: .watchOS, swiftVersion: .v5_9), nil)
}

func test_allDocumentationTargets() throws {
Expand Down
3 changes: 2 additions & 1 deletion Tests/SPIManifestTests/SwiftVersionTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ class SwiftVersionTests: XCTestCase {
func test_isLatestRelease() throws {
XCTAssertEqual(SwiftVersion.v5_7.isLatestRelease, false)
XCTAssertEqual(SwiftVersion.v5_8.isLatestRelease, false)
XCTAssertEqual(SwiftVersion.v5_9.isLatestRelease, true)
XCTAssertEqual(SwiftVersion.v5_9.isLatestRelease, false)
XCTAssertEqual(SwiftVersion.v5_10.isLatestRelease, true)
}

func test_Comparable() throws {
Expand Down

0 comments on commit a6de765

Please sign in to comment.