neo-go/pkg/consensus/commit_test.go
2019-11-27 10:57:22 +03:00

16 lines
260 B
Go

package consensus
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestCommit_Setters(t *testing.T) {
var sign [signatureSize]byte
fillRandom(t, sign[:])
var c commit
c.SetSignature(sign[:])
require.Equal(t, sign[:], c.Signature())
}