text: package types_test
  
  import (
  	"testing"
  
  	"github.com/lestrrat-go/jwx/jwt/internal/types"
  )
  
  func TestStringList_Accept(t *testing.T) {
  	var x types.StringList
  	interfaceList := make([]interface{}, 0)
  	interfaceList = append(interfaceList, "first")
  	interfaceList = append(interfaceList, "second")
  	err := x.Accept(interfaceList)
  	if err != nil {
  		t.Fatal("Failed to convert []interface{} into StringList: %", err.Error())
  	}
  }
  