package memento import ( "fmt" "testing" ) func TestNumber_ReinstateMemento(t *testing.T) { number := NewNumber(7) number.Double() number.Double() memento := number.CreateMemento() number.Hide() number.ReginstateMemento(memento) fmt.Println(number.value) }