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