- reimplement TrimBlanChar

This commit is contained in:
gazebo
2018-10-31 11:48:49 +08:00
parent e9d0a172ee
commit a69e005e31
3 changed files with 36 additions and 4 deletions

View File

@@ -125,3 +125,12 @@ func TestRemoveGeneralMapKeys(t *testing.T) {
t.Fatal("RemoveGeneralMapKeys handle nil wrong")
}
}
func TestTrimBlanChar(t *testing.T) {
str := `
大小21
`
if TrimBlanChar(str) != "大小21" {
t.Fatal("TrimBlanChar doesn't work")
}
}