File tree 5 files changed +23
-4
lines changed
All-Pairs Shortest Paths/APSP
5 files changed +23
-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
3
+ // last checked with Xcode 9.0b4
4
+ #if swift(>=4.0)
5
+ print ( " Hello, Swift 4! " )
6
+ #endif
7
+
3
8
import Graph
4
9
import APSP
5
10
Original file line number Diff line number Diff line change 3
3
version = " 3.0" >
4
4
<TimelineItems >
5
5
<LoggerValueHistoryTimelineItem
6
- documentLocation = " #CharacterRangeLen=0& CharacterRangeLoc=888 & EndingColumnNumber=44 & EndingLineNumber=29 & StartingColumnNumber=3 & StartingLineNumber=28 & Timestamp=486844329.035763 "
6
+ documentLocation = " file:///Users/kachen/src/swift-algorithm-club/All-Pairs%20Shortest%20Paths/APSP/APSP.playground #CharacterRangeLen=0& CharacterRangeLoc=971 & EndingColumnNumber=68 & EndingLineNumber=34 & StartingColumnNumber=68 & StartingLineNumber=34 & Timestamp=523221730.015692 "
7
7
selectedRepresentationIndex = " 0"
8
8
shouldTrackSuperviewWidth = " NO" >
9
9
</LoggerValueHistoryTimelineItem >
10
10
<LoggerValueHistoryTimelineItem
11
- documentLocation = " #CharacterRangeLen=4& CharacterRangeLoc=825 & EndingColumnNumber=9& EndingLineNumber=29 & StartingColumnNumber=5& StartingLineNumber=29 & Timestamp=486844329.036018 "
11
+ documentLocation = " file:///Users/kachen/src/swift-algorithm-club/All-Pairs%20Shortest%20Paths/APSP/APSP.playground #CharacterRangeLen=4& CharacterRangeLoc=908 & EndingColumnNumber=9& EndingLineNumber=34 & StartingColumnNumber=5& StartingLineNumber=34 & Timestamp=523221730.015887 "
12
12
selectedRepresentationIndex = " 0"
13
13
shouldTrackSuperviewWidth = " NO" >
14
14
</LoggerValueHistoryTimelineItem >
Original file line number Diff line number Diff line change 388
388
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
389
389
PRODUCT_BUNDLE_IDENTIFIER = "com.swift-algorithm-club.APSPTests";
390
390
PRODUCT_NAME = "$(TARGET_NAME)";
391
- SWIFT_VERSION = 3 .0;
391
+ SWIFT_VERSION = 4 .0;
392
392
};
393
393
name = Debug;
394
394
};
400
400
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks @loader_path/../Frameworks";
401
401
PRODUCT_BUNDLE_IDENTIFIER = "com.swift-algorithm-club.APSPTests";
402
402
PRODUCT_NAME = "$(TARGET_NAME)";
403
- SWIFT_VERSION = 3 .0;
403
+ SWIFT_VERSION = 4 .0;
404
404
};
405
405
name = Release;
406
406
};
Original file line number Diff line number Diff line change @@ -20,6 +20,13 @@ struct TestCase<T> where T: Hashable {
20
20
21
21
class APSPTests : XCTestCase {
22
22
23
+ func testSwift4( ) {
24
+ // last checked with Xcode 9.0b4
25
+ #if swift(>=4.0)
26
+ print ( " Hello, Swift 4! " )
27
+ #endif
28
+ }
29
+
23
30
/**
24
31
See Figure 25.1 of “Introduction to Algorithms” by Cormen et al, 3rd ed., pg 690
25
32
*/
Original file line number Diff line number Diff line change @@ -10,6 +10,13 @@ import XCTest
10
10
11
11
class GraphTests : XCTestCase {
12
12
13
+ func testSwift4( ) {
14
+ // last checked with Xcode 9.0b4
15
+ #if swift(>=4.0)
16
+ print ( " Hello, Swift 4! " )
17
+ #endif
18
+ }
19
+
13
20
func testAdjacencyMatrixGraphDescription( ) {
14
21
15
22
let graph = AdjacencyMatrixGraph < String > ( )
You can’t perform that action at this time.
0 commit comments