mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-24 09:25:21 +00:00
0036b3e52b
Also implement Bytes/Fill routines for generating byte slices.
17 lines
309 B
Go
17 lines
309 B
Go
package consensus
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/internal/random"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestCommit_Setters(t *testing.T) {
|
|
var sign [signatureSize]byte
|
|
random.Fill(sign[:])
|
|
|
|
var c commit
|
|
c.SetSignature(sign[:])
|
|
require.Equal(t, sign[:], c.Signature())
|
|
}
|