Skip to content

Commit fec5364

Browse files
committed
[Swift 4] Update Graph
1 parent 403e11c commit fec5364

File tree

3 files changed

+15
-1
lines changed

3 files changed

+15
-1
lines changed

Graph/Graph.playground/Contents.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
import Graph
22

3+
// last checked with Xcode 9.0b4
4+
#if swift(>=4.0)
5+
print("Hello, Swift 4!")
6+
#endif
7+
8+
39
for graph in [AdjacencyMatrixGraph<Int>(), AdjacencyListGraph<Int>()] {
410

511
let v1 = graph.createVertex(1)

Graph/Graph.playground/timeline.xctimeline

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
version = "3.0">
44
<TimelineItems>
55
<LoggerValueHistoryTimelineItem
6-
documentLocation = "#CharacterRangeLen=12&amp;CharacterRangeLoc=1238&amp;EndingColumnNumber=15&amp;EndingLineNumber=38&amp;StartingColumnNumber=3&amp;StartingLineNumber=38&amp;Timestamp=498745868.545441"
6+
documentLocation = "file:///Users/kachen/src/swift-algorithm-club/Graph/Graph.playground#CharacterRangeLen=12&amp;CharacterRangeLoc=1322&amp;EndingColumnNumber=4&amp;EndingLineNumber=45&amp;StartingColumnNumber=7&amp;StartingLineNumber=44&amp;Timestamp=523289935.918656"
77
selectedRepresentationIndex = "1"
88
shouldTrackSuperviewWidth = "NO">
99
</LoggerValueHistoryTimelineItem>

Graph/GraphTests/GraphTests.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ import XCTest
1010

1111
class GraphTests: XCTestCase {
1212

13+
func testSwift4() {
14+
// last checked with Xcode 9.0b4
15+
#if swift(>=4.0)
16+
print("Hello, Swift 4!")
17+
#endif
18+
19+
}
20+
1321
func testAdjacencyMatrixGraphDescription() {
1422

1523
let graph = AdjacencyMatrixGraph<String>()

0 commit comments

Comments
 (0)