mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-25 13:47:19 +00:00
7d91a3a89e
This way we can use it in scripts and cli.
17 lines
305 B
Go
17 lines
305 B
Go
package consensus
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/nspcc-dev/neo-go/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())
|
|
}
|