github.com/ydb-platform/ydb-go-sdk/v3@v3.89.2/internal/xslices/transform_test.go (about)

     1  package xslices
     2  
     3  import (
     4  	"strconv"
     5  	"testing"
     6  
     7  	"github.com/stretchr/testify/require"
     8  )
     9  
    10  func TestTransform(t *testing.T) {
    11  	require.Equal(t, []string{"1", "2", "3"}, Transform([]int{1, 2, 3}, strconv.Itoa))
    12  }