From c217653bca975ce7b6d4de63b248ceaad674d3f2 Mon Sep 17 00:00:00 2001 From: Brandon Williams Date: Thu, 16 Nov 2023 14:30:15 -0500 Subject: [PATCH] Fix some identified tests. --- .../xcshareddata/swiftpm/Package.resolved | 26 +++++++++---------- .../ReducerBuilderTests.swift | 4 +-- .../Reducers/ForEachReducerTests.swift | 10 +++---- 3 files changed, 20 insertions(+), 20 deletions(-) diff --git a/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved b/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved index 64e269711d84..dfdb21e0e101 100644 --- a/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ b/ComposableArchitecture.xcworkspace/xcshareddata/swiftpm/Package.resolved @@ -14,8 +14,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-argument-parser", "state" : { - "revision" : "fee6933f37fde9a5e12a1e4aeaa93fe60116ff2a", - "version" : "1.2.2" + "revision" : "8f4d2753f0e4778c76d5f05ad16c74f707390531", + "version" : "1.2.3" } }, { @@ -32,8 +32,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-case-paths", "state" : { - "revision" : "40773cbaf8d71ed5357f297b1ba4073f5b24faaa", - "version" : "1.1.0" + "revision" : "ed7facdd4a361514b46e3bbc6238cd41c84be4ec", + "version" : "1.1.1" } }, { @@ -50,8 +50,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/apple/swift-collections", "state" : { - "revision" : "937e904258d22af6e447a0b72c0bc67583ef64a2", - "version" : "1.0.4" + "revision" : "a902f1823a7ff3c9ab2fba0f992396b948eda307", + "version" : "1.0.5" } }, { @@ -68,8 +68,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/swift-custom-dump", "state" : { - "revision" : "edd66cace818e1b1c6f1b3349bb1d8e00d6f8b01", - "version" : "1.0.0" + "revision" : "65fc9e2b62727cacfab9fc60d580c284a4b9308c", + "version" : "1.1.1" } }, { @@ -129,10 +129,10 @@ { "identity" : "swift-syntax", "kind" : "remoteSourceControl", - "location" : "https://github.com/apple/swift-syntax.git", + "location" : "https://github.com/apple/swift-syntax", "state" : { - "revision" : "ffa3cd6fc2aa62adbedd31d3efaf7c0d86a9f029", - "version" : "509.0.1" + "revision" : "6ad4ea24b01559dde0773e3d091f1b9e36175036", + "version" : "509.0.2" } }, { @@ -158,8 +158,8 @@ "kind" : "remoteSourceControl", "location" : "https://github.com/pointfreeco/xctest-dynamic-overlay", "state" : { - "revision" : "302891700c7fa3b92ebde9fe7b42933f8349f3c7", - "version" : "1.0.0" + "revision" : "23cbf2294e350076ea4dbd7d5d047c1e76b03631", + "version" : "1.0.2" } } ], diff --git a/Tests/ComposableArchitectureTests/ReducerBuilderTests.swift b/Tests/ComposableArchitectureTests/ReducerBuilderTests.swift index 284d46c25900..892a43422566 100644 --- a/Tests/ComposableArchitectureTests/ReducerBuilderTests.swift +++ b/Tests/ComposableArchitectureTests/ReducerBuilderTests.swift @@ -52,7 +52,7 @@ private struct Root { case feature(Feature.Action) case optionalFeature(Feature.Action) case enumFeature(Features.Action) - case features(id: Feature.State.ID, action: Feature.Action) + case features(IdentifiedActionOf) } @available(iOS, introduced: 9999) @@ -188,7 +188,7 @@ private struct ForEachExample { } enum Action { - case value(id: Element.ID, action: Never) + case value(IdentifiedAction) } var body: some ReducerOf { diff --git a/Tests/ComposableArchitectureTests/Reducers/ForEachReducerTests.swift b/Tests/ComposableArchitectureTests/Reducers/ForEachReducerTests.swift index 3b2d4b555a69..e6de4c4fc9a1 100644 --- a/Tests/ComposableArchitectureTests/Reducers/ForEachReducerTests.swift +++ b/Tests/ComposableArchitectureTests/Reducers/ForEachReducerTests.swift @@ -16,13 +16,13 @@ final class ForEachReducerTests: BaseTCATestCase { Elements() } - await store.send(.row(id: 1, action: "Blob Esq.")) { + await store.send(.row(.element(id: 1, action: "Blob Esq."))) { $0.rows[id: 1]?.value = "Blob Esq." } - await store.send(.row(id: 2, action: "")) { + await store.send(.row(.element(id: 2, action: ""))) { $0.rows[id: 2]?.value = "" } - await store.receive(.row(id: 2, action: "Empty")) { + await store.receive(.row(.element(id: 2, action: "Empty"))) { $0.rows[id: 2]?.value = "Empty" } } @@ -65,7 +65,7 @@ final class ForEachReducerTests: BaseTCATestCase { """ } - await store.send(.row(id: 1, action: "Blob Esq.")) + await store.send(.row(.element(id: 1, action: "Blob Esq."))) } #endif @@ -232,7 +232,7 @@ struct Elements { } enum Action: Equatable { case buttonTapped - case row(id: Int, action: String) + case row(IdentifiedAction) } var body: some ReducerOf { Reduce { state, action in