mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-19 01:04:15 +00:00
17 lines
260 B
Go
17 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())
|
||
|
}
|