Add TitleCase cache

This commit is contained in:
Patrick O'brien 2016-09-02 17:09:42 +10:00
parent b101df0a24
commit 09fb8005f6
13 changed files with 69 additions and 103 deletions

View file

@ -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)
}
}