Skip to content

Commit 4104bc0

Browse files
committed
[Bug] Fix build error
1 parent 1eb05ba commit 4104bc0

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

Quicksort/Tests/QuicksortTests.swift

+7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
import XCTest
22

33
class QuicksortTests: XCTestCase {
4+
func testSwift4() {
5+
// last checked with Xcode 9.0b4
6+
#if swift(>=4.0)
7+
print("Hello, Swift 4!")
8+
#endif
9+
}
10+
411
func testQuicksort() {
512
checkSortAlgorithm(quicksort)
613
}

Quicksort/Tests/Tests(quicksort).xcodeproj/project.pbxproj

+2
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,7 @@
187187
SDKROOT = macosx;
188188
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
189189
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
190+
SWIFT_VERSION = 4.0;
190191
};
191192
name = Debug;
192193
};
@@ -233,6 +234,7 @@
233234
SDKROOT = macosx;
234235
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
235236
SWIFT_SWIFT3_OBJC_INFERENCE = Off;
237+
SWIFT_VERSION = 4.0;
236238
};
237239
name = Release;
238240
};

swift-algorithm-club.xcworkspace/contents.xcworkspacedata

-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)