github.com/nspcc-dev/neo-go@v0.105.2-0.20240517133400-6be757af3eba/pkg/core/native/native_neo_test.go (about)

     1  package native
     2  
     3  import (
     4  	"math/big"
     5  	"testing"
     6  
     7  	"github.com/nspcc-dev/neo-go/internal/testserdes"
     8  )
     9  
    10  func TestCandidate_Bytes(t *testing.T) {
    11  	expected := &candidate{
    12  		Registered: true,
    13  		Votes:      *big.NewInt(0x0F),
    14  	}
    15  	actual := new(candidate)
    16  	testserdes.ToFromStackItem(t, expected, actual)
    17  }