Add TitleCase cache
This commit is contained in:
parent
b101df0a24
commit
09fb8005f6
13 changed files with 69 additions and 103 deletions
strmangle
|
@ -242,7 +242,7 @@ func TestTitleCaseIdentifier(t *testing.T) {
|
|||
}
|
||||
|
||||
for i, test := range tests {
|
||||
if out := TitleCaseIdentifier(test.In, nil); out != test.Out {
|
||||
if out := TitleCaseIdentifier(test.In); out != test.Out {
|
||||
t.Errorf("[%d] (%s) Out was wrong: %q, want: %q", i, test.In, out, test.Out)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue