From 1b9582120577788f7b03dbfac9ef8c72b772c3d3 Mon Sep 17 00:00:00 2001 From: cfiken Date: Thu, 13 Aug 2020 12:47:43 +0900 Subject: [PATCH] Fix: testDetectSwiftVersion for Swift 5.2.5 --- CHANGELOG.md | 4 ++++ Tests/SwiftLintFrameworkTests/SwiftVersionTests.swift | 2 ++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5829e37e8f..db36b43f77 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -104,6 +104,10 @@ [Marcelo Fabri](https://github.com/marcelofabri) [#3150](https://github.com/realm/SwiftLint/issues/3150) +* Fix test `testDetectSwiftVersion` for Swift 5.2.5 + [cfiken](https://github.com/cfiken) + [#3299](https://github.com/realm/SwiftLint/pull/3299) + ## 0.39.2: Stay Home This is the last release to support building with Swift 5.0.x. diff --git a/Tests/SwiftLintFrameworkTests/SwiftVersionTests.swift b/Tests/SwiftLintFrameworkTests/SwiftVersionTests.swift index 22f16f2bfe..7d903eab1d 100644 --- a/Tests/SwiftLintFrameworkTests/SwiftVersionTests.swift +++ b/Tests/SwiftLintFrameworkTests/SwiftVersionTests.swift @@ -6,6 +6,8 @@ final class SwiftVersionTests: XCTestCase { func testDetectSwiftVersion() { #if compiler(>=5.3.0) let version = "5.3.0" + #elseif compiler(>=5.2.5) + let version = "5.2.5" #elseif compiler(>=5.2.4) let version = "5.2.4" #elseif compiler(>=5.2.3)