Skip to content

Commit

Permalink
[Swift 4] Update Rootish Array Stack
Browse files Browse the repository at this point in the history
  • Loading branch information
remlostime committed Aug 2, 2017
1 parent 61c9376 commit 4a85e17
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
//: Playground - noun: a place where people can play

// last checked with Xcode 9.0b4
#if swift(>=4.0)
print("Hello, Swift 4!")
#endif

import Darwin

public struct RootishArrayStack<T> {
Expand Down
7 changes: 7 additions & 0 deletions Rootish Array Stack/Tests/RootishArrayStackTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -205,4 +205,11 @@ class RootishArrayStackTests: XCTestCase {
XCTAssertEqual(list.first, 0)
XCTAssertTrue(list.equal(toArray: array))
}

func testSwift4() {
// last checked with Xcode 9.0b4
#if swift(>=4.0)
print("Hello, Swift 4!")
#endif
}
}
4 changes: 2 additions & 2 deletions Rootish Array Stack/Tests/Tests.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -238,7 +238,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down

0 comments on commit 4a85e17

Please sign in to comment.