mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-22 09:29:38 +00:00
708b439f4a
Signed-off-by: Anna Shaleva <shaleva.ann@nspcc.ru>
18 lines
306 B
Go
18 lines
306 B
Go
package consensus
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/nspcc-dev/neo-go/internal/random"
|
|
"github.com/stretchr/testify/require"
|
|
)
|
|
|
|
func TestCommit_Getters(t *testing.T) {
|
|
var sign [signatureSize]byte
|
|
random.Fill(sign[:])
|
|
|
|
var c = &commit{
|
|
signature: sign,
|
|
}
|
|
require.Equal(t, sign[:], c.Signature())
|
|
}
|