Skip to content

Commit f56c8a8

Browse files
committed
updated to swift 5 and updated tests
1 parent 65ae7a6 commit f56c8a8

File tree

2 files changed

+1
-11
lines changed

2 files changed

+1
-11
lines changed

Sources/WebLinking.swift

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,6 @@ public struct Link: Equatable, Hashable {
1414
self.parameters = parameters ?? [:]
1515
}
1616

17-
// /// Returns the hash value
18-
// public var hashValue: Int {
19-
// return uri.hashValue
20-
// }
21-
2217
/// Relation type of the Link.
2318
public var relationType: String? {
2419
return parameters["rel"]
@@ -35,11 +30,6 @@ public struct Link: Equatable, Hashable {
3530
}
3631
}
3732

38-
///// Returns whether two Link's are equivalent
39-
//public func == (lhs: Link, rhs: Link) -> Bool {
40-
// return lhs.uri == rhs.uri && lhs.parameters == rhs.parameters
41-
//}
42-
4333
// MARK: HTML Element Conversion
4434

4535
/// An extension to Link to provide conversion to a HTML element

Tests/WebLinkingTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ class LinkHTMLTests: XCTestCase {
113113
}
114114

115115
func testConversionToHTML() {
116-
let html = "<link rel=\"stylesheet\" type=\"text/css\" href=\"/style.css\" />"
116+
let html = "<link href=\"/style.css\" rel=\"stylesheet\" type=\"text/css\" />"
117117
XCTAssertEqual(link.html, html)
118118
}
119119
}

0 commit comments

Comments
 (0)