2019-11-15 10:32:40 +00:00
|
|
|
package consensus
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
2020-03-03 14:21:42 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/util"
|
2019-11-15 10:32:40 +00:00
|
|
|
"github.com/stretchr/testify/require"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestPrepareResponse_Setters(t *testing.T) {
|
|
|
|
var p prepareResponse
|
|
|
|
|
|
|
|
p.SetPreparationHash(util.Uint256{1, 2, 3})
|
|
|
|
require.Equal(t, util.Uint256{1, 2, 3}, p.PreparationHash())
|
|
|
|
}
|