Skip to content

Commit 17a1e4c

Browse files
Updates tests to check for Swift 4.2.
Updates build settings to use Swift 4.2.
1 parent 71b20f4 commit 17a1e4c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Comb Sort/Tests/CombSortTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ class CombSortTests: XCTestCase {
1212
var sequence: [Int]!
1313
let expectedSequence: [Int] = [-12, -10, -1, 2, 9, 32, 55, 67, 89, 101]
1414

15-
func testSwift4(){
16-
#if swift(>=4.0)
17-
print("Hello, Swift 4!")
15+
func testSwiftVersion(){
16+
#if swift(>=4.2)
17+
print("Hello, Swift 4.2!")
1818
#endif
1919
}
2020

Comb Sort/Tests/Tests.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
SDKROOT = macosx;
188188
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
189189
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
190-
SWIFT_VERSION = 4.0;
190+
SWIFT_VERSION = 4.2;
191191
};
192192
name = Debug;
193193
};
@@ -237,7 +237,7 @@
237237
MTL_ENABLE_DEBUG_INFO = NO;
238238
SDKROOT = macosx;
239239
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
240-
SWIFT_VERSION = 4.0;
240+
SWIFT_VERSION = 4.2;
241241
};
242242
name = Release;
243243
};

0 commit comments

Comments
 (0)