tutus-chain/pkg/core/native/native_neo_test.go

18 lines
307 B
Go

package native
import (
"math/big"
"testing"
"github.com/tutus-one/tutus-chain/internal/testserdes"
)
func TestCandidate_Bytes(t *testing.T) {
expected := &candidate{
Registered: true,
Votes: *big.NewInt(0x0F),
}
actual := new(candidate)
testserdes.ToFromStackItem(t, expected, actual)
}