mirror of
https://github.com/apple/swift-collections
synced 2026-11-22 04:20:40 +00:00
Guard the memoizedValue fuzz steps with #available
`memoizedValue(forKey:_:)` and `Ref.value` need SwiftStdlib 6.4, so the fuzz tests failed to compile on macOS with the UnstableHashedContainers trait (CI only enables that trait on Linux). Skip just that operation on older platforms instead of marking the whole tests unavailable.
This commit is contained in:
1 parent
b2f5535d27
commit
ebc8757bd3
1 file changed
+2
@@ -310,6 +310,7 @@ class HashedContainersFuzzTests: CollectionTestCase {
|
||||
}
|
||||
case 5:
|
||||
guard canAdd else { break }
|
||||
guard #available(SwiftStdlib 6.4, *) else { break }
|
||||
let expected = model[k] ?? step
|
||||
let ref = d.memoizedValue(forKey: key) { _ in
|
||||
tracker.instance(for: step)
|
||||
@@ -398,6 +399,7 @@ class HashedContainersFuzzTests: CollectionTestCase {
|
||||
default: break
|
||||
}
|
||||
case 5:
|
||||
guard #available(SwiftStdlib 6.4, *) else { break }
|
||||
let expected = model[k] ?? step
|
||||
let ref = d.memoizedValue(forKey: key) { _ in
|
||||
tracker.instance(for: step)
|
||||
|
||||
Reference in new issue
Block a user