Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch latest release to 6.0 #54

Merged
merged 1 commit into from
Sep 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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