From d3f3684195a44e326263fe2a2fb0206b5c2eff53 Mon Sep 17 00:00:00 2001 From: Swastik Tripathi Date: Fri, 6 Nov 2026 13:40:07 +0530 Subject: [PATCH] [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 --- Tests/BasicContainersTests/RigidDictionaryTests.swift | 1 + Tests/BasicContainersTests/UniqueDictionaryTests.swift | 1 + 2 files changed, 2 insertions(+) diff --git a/Tests/BasicContainersTests/RigidDictionaryTests.swift b/Tests/BasicContainersTests/RigidDictionaryTests.swift index 5c438995..3d471690 100644 --- a/Tests/BasicContainersTests/RigidDictionaryTests.swift +++ b/Tests/BasicContainersTests/RigidDictionaryTests.swift @@ -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 diff --git a/Tests/BasicContainersTests/UniqueDictionaryTests.swift b/Tests/BasicContainersTests/UniqueDictionaryTests.swift index 5a90d825..77b19dc5 100644 --- a/Tests/BasicContainersTests/UniqueDictionaryTests.swift +++ b/Tests/BasicContainersTests/UniqueDictionaryTests.swift @@ -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