parent
c88ebaede9
commit
36d486a664
12 changed files with 45 additions and 22 deletions
|
@ -4,12 +4,14 @@ import (
|
|||
"testing"
|
||||
"unicode"
|
||||
|
||||
"github.com/nspcc-dev/neo-go/pkg/config"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
// "C" and "O" can easily be typed by accident.
|
||||
func TestNamesASCII(t *testing.T) {
|
||||
cs := NewContracts(true, map[string][]uint32{})
|
||||
cfg := config.ProtocolConfiguration{P2PSigExtensions: true}
|
||||
cs := NewContracts(cfg)
|
||||
for _, c := range cs.Contracts {
|
||||
require.True(t, isASCII(c.Metadata().Name))
|
||||
for _, m := range c.Metadata().Methods {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue