We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24642f0 commit 5d000d0Copy full SHA for 5d000d0
TestFoundation/TestNSCache.swift
@@ -117,12 +117,15 @@ class TestNSCache : XCTestCase {
117
118
class TestHashableCacheKey: Hashable {
119
let string: String
120
- var hashValue: Int { return string.hashValue }
121
122
init(string: String) {
123
self.string = string
124
}
125
+ func hash(into hasher: inout Hasher) {
126
+ hasher.combine(string)
127
+ }
128
+
129
static func ==(lhs: TestHashableCacheKey,
130
rhs:TestHashableCacheKey) -> Bool {
131
return lhs.string == rhs.string
0 commit comments