Skip to content

Commit

Permalink
[Swift 4] Update Treap
Browse files Browse the repository at this point in the history
  • Loading branch information
remlostime committed Aug 1, 2017
1 parent 403e11c commit d6e59a4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Treap/Treap/Treap.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.willowtree.TreapTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Debug;
};
Expand All @@ -255,7 +255,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = com.willowtree.TreapTests;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 3.0;
SWIFT_VERSION = 4.0;
};
name = Release;
};
Expand Down
7 changes: 7 additions & 0 deletions Treap/Treap/TreapTests/TreapTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ class TreapTests: XCTestCase {
super.tearDown()
}

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

func testSanity() {
var treap = Treap<Int, String>.empty
treap = treap.set(key: 5, val: "a").set(key: 7, val: "b")
Expand Down

0 comments on commit d6e59a4

Please sign in to comment.