github.com/fzfile/BaiduPCS-Go@v0.0.0-20200606205115-4408961cf336/pcsutil/converter/converter_test.go (about) 1 package converter_test 2 3 import ( 4 "github.com/fzfile/BaiduPCS-Go/pcsutil/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 }