File tree 4 files changed +22
-6
lines changed
4 files changed +22
-6
lines changed Original file line number Diff line number Diff line change 1
1
//: Playground - noun: a place where people can play
2
2
3
+ // last checked with Xcode 9.0b4
4
+ #if swift(>=4.0)
5
+ print ( " Hello, Swift 4! " )
6
+ #endif
7
+
3
8
let tree = AVLTree < Int , String > ( )
4
9
5
10
tree. insert ( key: 5 , payload: " five " )
Original file line number Diff line number Diff line change 7
7
//
8
8
9
9
import XCTest
10
-
11
10
class AVLTreeTests : XCTestCase {
12
-
13
11
var tree : AVLTree < Int , String > ?
14
12
13
+ func testSwift4( ) {
14
+ // last checked with Xcode 9.0b4
15
+ #if swift(>=4.0)
16
+ print ( " Hello, Swift 4! " )
17
+ #endif
18
+ }
15
19
override func setUp( ) {
16
20
super. setUp ( )
17
21
Original file line number Diff line number Diff line change 180
180
ONLY_ACTIVE_ARCH = YES;
181
181
SDKROOT = macosx;
182
182
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
183
+ SWIFT_VERSION = 4.0;
183
184
};
184
185
name = Debug;
185
186
};
219
220
MTL_ENABLE_DEBUG_INFO = NO;
220
221
SDKROOT = macosx;
221
222
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
223
+ SWIFT_VERSION = 4.0;
222
224
};
223
225
name = Release;
224
226
};
230
232
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
231
233
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
232
234
PRODUCT_NAME = "$(TARGET_NAME)";
233
- SWIFT_VERSION = 3 .0;
235
+ SWIFT_VERSION = 4 .0;
234
236
};
235
237
name = Debug;
236
238
};
242
244
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
243
245
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
244
246
PRODUCT_NAME = "$(TARGET_NAME)";
245
- SWIFT_VERSION = 3 .0;
247
+ SWIFT_VERSION = 4 .0;
246
248
};
247
249
name = Release;
248
250
};
Original file line number Diff line number Diff line change 9
9
import XCTest
10
10
11
11
class TreeNodeTests : XCTestCase {
12
-
12
+
13
13
var root : TreeNode < String , String > ?
14
14
var left : TreeNode < String , String > ?
15
15
var right : TreeNode < String , String > ?
16
-
16
+ func testSwift4( ) {
17
+ // last checked with Xcode 9.0b4
18
+ #if swift(>=4.0)
19
+ print ( " Hello, Swift 4! " )
20
+ #endif
21
+ }
17
22
override func setUp( ) {
18
23
super. setUp ( )
19
24
You can’t perform that action at this time.
0 commit comments