github.com/go-board/x-go@v0.1.2-0.20220610024734-db1323f6cb15/xdatabase/xsql/types_test.go (about)

     1  package xsql
     2  
     3  import (
     4  	"testing"
     5  
     6  	"github.com/stretchr/testify/assert"
     7  )
     8  
     9  func TestStringArray(t *testing.T) {
    10  	arr := StringArray{"Hello", "world"}
    11  	t.Run("value", func(t *testing.T) {
    12  		value, err := arr.Value()
    13  		assert.Nil(t, err, "err must be nil")
    14  		assert.Equal(t, "Hello,world", value)
    15  	})
    16  }