neoneo-go/pkg/vm/stackitem/type_test.go

17 lines
357 B
Go
Raw Normal View History

package stackitem
import (
"testing"
"github.com/stretchr/testify/require"
)
func TestFromString(t *testing.T) {
typs := []Type{AnyT, PointerT, BooleanT, IntegerT, ByteArrayT, BufferT, ArrayT, StructT, MapT, InteropT}
for _, typ := range typs {
actual, err := FromString(typ.String())
require.NoError(t, err)
require.Equal(t, typ, actual)
}
}