mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-29 23:33:37 +00:00
16 lines
305 B
Go
16 lines
305 B
Go
|
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())
|
||
|
}
|