18 lines
315 B
Go
Executable File
18 lines
315 B
Go
Executable File
package native
|
|
|
|
import (
|
|
"math/big"
|
|
"testing"
|
|
|
|
"git.marketally.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)
|
|
}
|