forked from TrueCloudLab/neoneo-go
scripts: add test for compare-dumps script
This commit is contained in:
parent
5b4f6d255f
commit
f0324a1230
2 changed files with 14 additions and 1 deletions
|
@ -15,7 +15,7 @@ import (
|
|||
"github.com/urfave/cli"
|
||||
)
|
||||
|
||||
var ledgerContractID = -2
|
||||
var ledgerContractID = -4
|
||||
|
||||
type dump []blockDump
|
||||
|
||||
|
|
13
scripts/compare-dumps_test.go
Normal file
13
scripts/compare-dumps_test.go
Normal 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))
|
||||
}
|
Loading…
Reference in a new issue