github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/consensus/prepare_response_test.go (about)

     1  package consensus
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/nspcc-dev/neo-go/pkg/util"
     7  	"github.com/stretchr/testify/require"
     8  )
     9  
    10  func TestPrepareResponse_Setters(t *testing.T) {
    11  	var p = prepareResponse{
    12  		preparationHash: util.Uint256{1, 2, 3},
    13  	}
    14  
    15  	require.Equal(t, util.Uint256{1, 2, 3}, p.PreparationHash())
    16  }