[BasicContainers] Mark the new memoizedValue tests as SwiftStdlib 6.4

test_memoizedValue_returnsNewlyInsertedValue in RigidDictionaryTests and
UniqueDictionaryTests calls memoizedValue(forKey:_:), which needs
SwiftStdlib 6.4, but the tests had no availability attribute. With the
UnstableHashedContainers trait on macOS, BasicContainersTests failed to
build ("'memoizedValue(forKey:_:)' is only available in macOS 27.0 or
newer"). Add the same @available attribute test_memoizedValue_one uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Swastik TripathiandClaude Opus 5.5 committed 2026-11-06 13:40:07 +05:30
1 parent 9b328ecb94
commit d3f3684195
2 files changed
+2

No files matched your search

@@ -274,6 +274,7 @@ class RigidDictionaryTests: CollectionTestCase {
}
}
@available(SwiftStdlib 6.4, *)
func test_memoizedValue_returnsNewlyInsertedValue() {
// Inserting a new key can displace existing entries (by swapping them
// around in both small and hashed storage); `memoizedValue` must still
@@ -397,6 +397,7 @@ class UniqueDictionaryTests: CollectionTestCase {
}
}
@available(SwiftStdlib 6.4, *)
func test_memoizedValue_returnsNewlyInsertedValue() {
// Inserting a new key can displace existing entries (by swapping them
// around in both small and hashed storage); `memoizedValue` must still