- reimplement TrimBlanChar
This commit is contained in:
@@ -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")
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user