File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ import Foundation
10
10
import XCTest
11
11
12
12
class KMeansTests : XCTestCase {
13
+ func testSwift4( ) {
14
+ // last checked with Xcode 9.0b4
15
+ #if swift(>=4.0)
16
+ print ( " Hello, Swift 4! " )
17
+ #endif
18
+ }
19
+
13
20
func genPoints( _ numPoints: Int , numDimensions: Int ) -> [ Vector ] {
14
21
var points = [ Vector] ( )
15
22
for _ in 0 ..< numPoints {
Original file line number Diff line number Diff line change 229
229
PRODUCT_NAME = "$(TARGET_NAME)";
230
230
SDKROOT = macosx;
231
231
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
232
- SWIFT_VERSION = 3 .0;
232
+ SWIFT_VERSION = 4 .0;
233
233
};
234
234
name = Debug;
235
235
};
271
271
PRODUCT_BUNDLE_IDENTIFIER = com.alvahouse322.Tests;
272
272
PRODUCT_NAME = "$(TARGET_NAME)";
273
273
SDKROOT = macosx;
274
- SWIFT_VERSION = 3 .0;
274
+ SWIFT_VERSION = 4 .0;
275
275
};
276
276
name = Release;
277
277
};
You can’t perform that action at this time.
0 commit comments