github.com/NaverCloudPlatform/ncloud-sdk-go-v2@v1.6.13/ncloud/convert_types_test.go (about)

     1  package ncloud
     2  
     3  import "testing"
     4  
     5  func TestStringList(t *testing.T) {
     6  	test := make([]string, 2)
     7  	test[0] = "0"
     8  	test[1] = "1"
     9  	result := StringList(test)
    10  
    11  	if len(test) != len(result) {
    12  		t.Fatalf("Expected: %v, Actual: %v", test, StringListValue(result))
    13  	}
    14  }