Skip to content

Commit

Permalink
Merge pull request #54 from SwiftPackageIndex/latest-release-6.0
Browse files Browse the repository at this point in the history
Switch latest release to 6.0
  • Loading branch information
finestructure authored Sep 22, 2024
2 parents dad0c2f + b4281ed commit 7726c6e
Show file tree
Hide file tree
Showing 3 changed files with 4 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_10 = "5.10"
case v6_0 = "6.0"

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

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

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

func test_Comparable() throws {
Expand Down

0 comments on commit 7726c6e

Please sign in to comment.