File tree Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Expand file tree Collapse file tree 3 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 3
3
// For best results, don't forget to select "Show Rendered Markup" from XCode's "Editor" menu
4
4
5
5
//: Linked List Class Declaration:
6
+ // last checked with Xcode 9.0b4
7
+ #if swift(>=4.0)
8
+ print ( " Hello, Swift 4! " )
9
+ #endif
10
+
6
11
public final class LinkedList < T> {
7
12
8
13
/// Linked List's Node Class Declaration
Original file line number Diff line number Diff line change @@ -11,6 +11,13 @@ class LinkedListTest: XCTestCase {
11
11
return list
12
12
}
13
13
14
+ func testSwift4( ) {
15
+ // last checked with Xcode 9.0b4
16
+ #if swift(>=4.0)
17
+ print ( " Hello, Swift 4! " )
18
+ #endif
19
+ }
20
+
14
21
func testEmptyList( ) {
15
22
let list = LinkedList < Int > ( )
16
23
XCTAssertTrue ( list. isEmpty)
Original file line number Diff line number Diff line change 221
221
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
222
222
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
223
223
PRODUCT_NAME = "$(TARGET_NAME)";
224
- SWIFT_VERSION = 3 .0;
224
+ SWIFT_VERSION = 4 .0;
225
225
};
226
226
name = Debug;
227
227
};
233
233
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
234
234
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
235
235
PRODUCT_NAME = "$(TARGET_NAME)";
236
- SWIFT_VERSION = 3 .0;
236
+ SWIFT_VERSION = 4 .0;
237
237
};
238
238
name = Release;
239
239
};
You can’t perform that action at this time.
0 commit comments