Skip to content

Commit d6e59a4

Browse files
committed
[Swift 4] Update Treap
1 parent 403e11c commit d6e59a4

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

Treap/Treap/Treap.xcodeproj/project.pbxproj

+2-2
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@
243243
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
244244
PRODUCT_BUNDLE_IDENTIFIER = com.willowtree.TreapTests;
245245
PRODUCT_NAME = "$(TARGET_NAME)";
246-
SWIFT_VERSION = 3.0;
246+
SWIFT_VERSION = 4.0;
247247
};
248248
name = Debug;
249249
};
@@ -255,7 +255,7 @@
255255
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
256256
PRODUCT_BUNDLE_IDENTIFIER = com.willowtree.TreapTests;
257257
PRODUCT_NAME = "$(TARGET_NAME)";
258-
SWIFT_VERSION = 3.0;
258+
SWIFT_VERSION = 4.0;
259259
};
260260
name = Release;
261261
};

Treap/Treap/TreapTests/TreapTests.swift

+7
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ class TreapTests: XCTestCase {
3838
super.tearDown()
3939
}
4040

41+
func testSwift4() {
42+
// last checked with Xcode 9.0b4
43+
#if swift(>=4.0)
44+
print("Hello, Swift 4!")
45+
#endif
46+
}
47+
4148
func testSanity() {
4249
var treap = Treap<Int, String>.empty
4350
treap = treap.set(key: 5, val: "a").set(key: 7, val: "b")

0 commit comments

Comments
 (0)