scripts: add test for compare-dumps script

This commit is contained in:
Anna Shaleva 2021-03-29 15:49:46 +03:00
parent 5b4f6d255f
commit f0324a1230
2 changed files with 14 additions and 1 deletions

View file

@ -15,7 +15,7 @@ import (
"github.com/urfave/cli" "github.com/urfave/cli"
) )
var ledgerContractID = -2 var ledgerContractID = -4
type dump []blockDump type dump []blockDump

View file

@ -0,0 +1,13 @@
package main
import (
"testing"
"github.com/nspcc-dev/neo-go/pkg/core/native"
"github.com/stretchr/testify/require"
)
func TestCompatibility(t *testing.T) {
cs := native.NewContracts(false, map[string][]uint32{})
require.Equal(t, cs.Ledger.ID, int32(ledgerContractID))
}