github.com/iikira/iikira-go-utils@v0.0.0-20230610031953-f2cb11cde33a/utils/converter/converter_test.go (about)

     1  package converter_test
     2  
     3  import (
     4  	"github.com/iikira/iikira-go-utils/utils/converter"
     5  	"strings"
     6  	"testing"
     7  )
     8  
     9  func TestTrimPathInvalidChars(t *testing.T) {
    10  	trimed := converter.TrimPathInvalidChars("ksjadfi*/?adf")
    11  	if strings.Compare(trimed, "ksjadfiadf") != 0 {
    12  		t.Fatalf("trimed: %s\n", trimed)
    13  	}
    14  	return
    15  }