From b192831776b25aa13a2a36934dbc3498c6fcf6d7 Mon Sep 17 00:00:00 2001 From: "Sven A. Schmidt" Date: Fri, 7 Jun 2024 09:35:30 +0200 Subject: [PATCH] Drop 5.7 --- Sources/SPIManifest/SwiftVersion.swift | 1 - Tests/SPIManifestTests/ManifestTests.swift | 5 ++--- Tests/SPIManifestTests/SwiftVersionTests.swift | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Sources/SPIManifest/SwiftVersion.swift b/Sources/SPIManifest/SwiftVersion.swift index 381f215..99a25b9 100644 --- a/Sources/SPIManifest/SwiftVersion.swift +++ b/Sources/SPIManifest/SwiftVersion.swift @@ -16,7 +16,6 @@ public typealias ShortVersion = String public enum SwiftVersion: ShortVersion, Codable, CaseIterable { - case v5_7 = "5.7" case v5_8 = "5.8" case v5_9 = "5.9" case v5_10 = "5.10" diff --git a/Tests/SPIManifestTests/ManifestTests.swift b/Tests/SPIManifestTests/ManifestTests.swift index 1972041..94a90ea 100644 --- a/Tests/SPIManifestTests/ManifestTests.swift +++ b/Tests/SPIManifestTests/ManifestTests.swift @@ -322,15 +322,14 @@ class ManifestTests: XCTestCase { documentation_targets: - t2 - platform: watchos - swift_version: 5.7 + swift_version: 5.8 documentation_targets: - t3 """ ) // MUT - XCTAssertEqual(m.documentationTargets(platform: .watchOS, swiftVersion: .v5_7), ["t3"]) - XCTAssertEqual(m.documentationTargets(platform: .macosSpm, swiftVersion: .v5_8), nil) + 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: .watchOS, swiftVersion: .v5_9), nil) diff --git a/Tests/SPIManifestTests/SwiftVersionTests.swift b/Tests/SPIManifestTests/SwiftVersionTests.swift index 4b5d572..bdc1056 100644 --- a/Tests/SPIManifestTests/SwiftVersionTests.swift +++ b/Tests/SPIManifestTests/SwiftVersionTests.swift @@ -24,16 +24,16 @@ class SwiftVersionTests: XCTestCase { } func test_isLatestRelease() throws { - XCTAssertEqual(SwiftVersion.v5_7.isLatestRelease, false) XCTAssertEqual(SwiftVersion.v5_8.isLatestRelease, false) XCTAssertEqual(SwiftVersion.v5_9.isLatestRelease, false) XCTAssertEqual(SwiftVersion.v5_10.isLatestRelease, true) + XCTAssertEqual(SwiftVersion.v6_0.isLatestRelease, false) } func test_Comparable() throws { + XCTAssert(SwiftVersion.v6_0 > .v5_10) XCTAssert(SwiftVersion.v5_10 > .v5_9) XCTAssert(SwiftVersion.v5_9 > .v5_8) - XCTAssert(SwiftVersion.v5_8 > .v5_7) } }