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) {
|
2024-03-21 19:49:39 +00:00
|
|
|
var p = prepareResponse{
|
|
|
|
preparationHash: util.Uint256{1, 2, 3},
|
|
|
|
}
|
2019-11-15 10:32:40 +00:00
|
|
|
|
|
|
|
require.Equal(t, util.Uint256{1, 2, 3}, p.PreparationHash())
|
|
|
|
}
|