File tree 3 files changed +14
-4
lines changed
3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 1
1
//: Playground - noun: a place where people can play
2
-
2
+ // last checked with Xcode 9.0b4
3
+ #if swift(>=4.0)
4
+ print ( " Hello, Swift 4! " )
5
+ #endif
3
6
public class BloomFilter < T> {
4
7
fileprivate var array : [ Bool ]
5
8
private var hashFunctions : [ ( T ) -> Int ]
Original file line number Diff line number Diff line change @@ -24,7 +24,12 @@ func sdbm(_ x: String) -> Int {
24
24
}
25
25
26
26
class BloomFilterTests : XCTestCase {
27
-
27
+ func testSwift4( ) {
28
+ // last checked with Xcode 9.0b4
29
+ #if swift(>=4.0)
30
+ print ( " Hello, Swift 4! " )
31
+ #endif
32
+ }
28
33
func testSingleHashFunction( ) {
29
34
let bloom = BloomFilter < String > ( hashFunctions: [ djb2] )
30
35
Original file line number Diff line number Diff line change 176
176
ONLY_ACTIVE_ARCH = YES;
177
177
SDKROOT = macosx;
178
178
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
179
+ SWIFT_VERSION = 4.0;
179
180
};
180
181
name = Debug;
181
182
};
215
216
MTL_ENABLE_DEBUG_INFO = NO;
216
217
SDKROOT = macosx;
217
218
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
219
+ SWIFT_VERSION = 4.0;
218
220
};
219
221
name = Release;
220
222
};
226
228
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
227
229
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
228
230
PRODUCT_NAME = "$(TARGET_NAME)";
229
- SWIFT_VERSION = 3 .0;
231
+ SWIFT_VERSION = 4 .0;
230
232
};
231
233
name = Debug;
232
234
};
238
240
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
239
241
PRODUCT_BUNDLE_IDENTIFIER = swift.algorithm.club.Tests;
240
242
PRODUCT_NAME = "$(TARGET_NAME)";
241
- SWIFT_VERSION = 3 .0;
243
+ SWIFT_VERSION = 4 .0;
242
244
};
243
245
name = Release;
244
246
};
You can’t perform that action at this time.
0 commit comments