Add StringTitle

This commit is contained in:
George Suntres
2026-03-30 18:29:58 -04:00
parent 65eec3c3b1
commit d829099a45
9 changed files with 73 additions and 0 deletions

View File

@@ -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 "