Skip to content

Commit

Permalink
Fix some identified tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrandonw committed Nov 16, 2023
1 parent cb2c5c1 commit c217653
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand All @@ -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"
}
},
{
Expand All @@ -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"
}
},
{
Expand All @@ -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"
}
},
{
Expand Down Expand Up @@ -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"
}
},
{
Expand All @@ -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"
}
}
],
Expand Down
4 changes: 2 additions & 2 deletions Tests/ComposableArchitectureTests/ReducerBuilderTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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<Feature>)
}

@available(iOS, introduced: 9999)
Expand Down Expand Up @@ -188,7 +188,7 @@ private struct ForEachExample {
}

enum Action {
case value(id: Element.ID, action: Never)
case value(IdentifiedAction<Element.ID, Never>)
}

var body: some ReducerOf<Self> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
Expand Down Expand Up @@ -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

Expand Down Expand Up @@ -232,7 +232,7 @@ struct Elements {
}
enum Action: Equatable {
case buttonTapped
case row(id: Int, action: String)
case row(IdentifiedAction<Int, String>)
}
var body: some ReducerOf<Self> {
Reduce { state, action in
Expand Down

0 comments on commit c217653

Please sign in to comment.