func TestClientCreateCollection(t *testing.T)  {
	ctx := context.Background()
	c := GenClient(t)
	name := ut.GenRandomString(8)
	fields := ut.GenDefaultFields(ut.DefaultDim)
	schema := ut.GenSchema(name, false, fields)
	err := c.CreateCollection(ctx, schema, ut.DefaultShards)
	assert.NoError(t, err)
	isExist, err1 := c.HasCollection(ctx, name)
	assert.NoError(t, err1)
	assert.True(t, isExist)
}
Test create collection with default schema
package tests
import (
	"context"
	"fmt"
	"github.com/milvus-io/milvus-sdk-go/v2/entity"
	ut "github.com/milvus-io/milvus-sdk-go/v2/tests/testutil"
	"github.com/stretchr/testify/assert"
	"testing"
)
var nameTests = []struct {
	name string
}{
	{"123"},
	{"中文"},
	{"(mn)"},
	{"%$#"},
}
var dimTests = []struct {
	dim int64
}{
	{-1},
	{0},
	{32769},
}