neo-go/pkg/consensus/prepare_response_test.go

16 lines
305 B
Go
Raw Normal View History

2019-11-15 10:32:40 +00:00
package consensus
import (
"testing"
"github.com/CityOfZion/neo-go/pkg/util"
"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())
}