Skip to content

Commit 19fbd35

Browse files
committed
add code that resolve test
1 parent 36a6a19 commit 19fbd35

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

behavioral/memento/README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,8 @@ func TestStoresIdleState(t *testing.T) {
4545
t.Error("Unexpected state found")
4646
}
4747
}
48+
49+
func (o *originator) ExtractAndStoreState(m memento) {
50+
o.state = m.state
51+
}
4852
```

0 commit comments

Comments
 (0)