neoneo-go/pkg/consensus/commit_test.go

17 lines
260 B
Go
Raw Normal View History

2019-11-15 10:32:40 +00:00
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())
}