We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ec631f5 commit 1f69700Copy full SHA for 1f69700
Tests/StructTransactionTests/TransactionTests.swift
@@ -66,7 +66,20 @@ final class WritingStateTests: XCTestCase {
66
$0.nested.name = "hey"
67
}
68
69
+ XCTAssertEqual(r.modifiedIdentifiers, .init(["nested"]))
70
XCTAssertEqual(myState.nested.name, "hey")
71
72
73
+ func testModifyOverComputedProperty() {
74
+
75
+ var myState = MyState(name: "")
76
77
+ let r = myState.modify {
78
+ $0.computed_setter = "A"
79
+ }
80
81
+ XCTAssertEqual(r.modifiedIdentifiers, .init(["name"]))
82
+ XCTAssertEqual(myState.name, "A")
83
84
85
0 commit comments