neoneo-go/pkg/consensus/prepare_response_test.go

16 lines
304 B
Go
Raw Normal View History

2019-11-15 10:32:40 +00:00
package consensus
import (
"testing"
"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())
}