package tests import ( "math" "math/big" "path" "testing" "github.com/nspcc-dev/neo-go/pkg/neotest" "github.com/stretchr/testify/require" ) const testdataPath = "./testdata" func newTestdataInvoker(t *testing.T) *neotest.ContractInvoker { e := newExecutor(t) ctr := neotest.CompileFile(t, e.CommitteeHash, testdataPath, path.Join(testdataPath, "config.yml")) e.DeployContract(t, ctr, nil) return e.CommitteeInvoker(ctr.Hash) } func TestEncodeU64(t *testing.T) { // Let's check boundary values for all bit sizes: var nums []uint64 for i := 0; i < 64; i++ { if i != 0 { nums = append(nums, (1<