Skip to content

Commit 4a85e17

Browse files
committed
[Swift 4] Update Rootish Array Stack
1 parent 61c9376 commit 4a85e17

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

Rootish Array Stack/RootishArrayStack.playground/Contents.swift

+5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
//: Playground - noun: a place where people can play
22

3+
// last checked with Xcode 9.0b4
4+
#if swift(>=4.0)
5+
print("Hello, Swift 4!")
6+
#endif
7+
38
import Darwin
49

510
public struct RootishArrayStack<T> {

Rootish Array Stack/Tests/RootishArrayStackTests.swift

+7
Original file line numberDiff line numberDiff line change
@@ -205,4 +205,11 @@ class RootishArrayStackTests: XCTestCase {
205205
XCTAssertEqual(list.first, 0)
206206
XCTAssertTrue(list.equal(toArray: array))
207207
}
208+
209+
func testSwift4() {
210+
// last checked with Xcode 9.0b4
211+
#if swift(>=4.0)
212+
print("Hello, Swift 4!")
213+
#endif
214+
}
208215
}

Rootish Array Stack/Tests/Tests.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@
226226
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
227227
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
228228
PRODUCT_NAME = "$(TARGET_NAME)";
229-
SWIFT_VERSION = 3.0;
229+
SWIFT_VERSION = 4.0;
230230
};
231231
name = Debug;
232232
};
@@ -238,7 +238,7 @@
238238
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
239239
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
240240
PRODUCT_NAME = "$(TARGET_NAME)";
241-
SWIFT_VERSION = 3.0;
241+
SWIFT_VERSION = 4.0;
242242
};
243243
name = Release;
244244
};

0 commit comments

Comments
 (0)