Add StringTitle
This commit is contained in:
@@ -4,6 +4,17 @@ import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
|
||||
func TestStringTitle(t *testing.T) {
|
||||
v := "string to make title"
|
||||
|
||||
vv := StringTitle(v)
|
||||
|
||||
if vv != "String To Make Title" {
|
||||
t.Fatalf("Failed to capitalize %s", vv)
|
||||
}
|
||||
}
|
||||
|
||||
func TestStringNormalize(t *testing.T) {
|
||||
v := " some text here "
|
||||
|
||||
|
||||
Reference in New Issue
Block a user