diff --git a/pkg/txt/capitalization_test.go b/pkg/txt/capitalization_test.go index 6bb9b6aba..29a9a1db6 100644 --- a/pkg/txt/capitalization_test.go +++ b/pkg/txt/capitalization_test.go @@ -73,13 +73,16 @@ func TestTitle(t *testing.T) { t.Run("youtube", func(t *testing.T) { assert.Equal(t, "YouTube", Title("youtube")) }) - t.Run("interpunctio-1", func(t *testing.T) { + t.Run("interpunction-1", func(t *testing.T) { assert.Equal(t, "This,,, Is !a ! a Very Strange Title....", Title("this,,, is !a ! a very strange title....")) }) - t.Run("interpunctio-2", func(t *testing.T) { + t.Run("interpunction-2", func(t *testing.T) { assert.Equal(t, "This Is a Not So Strange Title!", Title("This is a not so strange title!")) }) t.Run("horse", func(t *testing.T) { assert.Equal(t, "A Horse Is Not a Cow :-)", Title("a horse is not a cow :-)")) }) + t.Run("NewYears", func(t *testing.T) { + assert.Equal(t, "Boston New Year's", Title("boston new year's")) + }) } diff --git a/pkg/txt/file_title_test.go b/pkg/txt/file_title_test.go index 0faa8d7b2..8b1c822e3 100644 --- a/pkg/txt/file_title_test.go +++ b/pkg/txt/file_title_test.go @@ -86,4 +86,7 @@ func TestFileTitle(t *testing.T) { t.Run("plus", func(t *testing.T) { assert.Equal(t, "Foo+Bar, Du + Ich & Er", FileTitle("Foo+bar, du + ich & er +")) }) + t.Run("NewYears", func(t *testing.T) { + assert.Equal(t, "Boston New Year's", FileTitle("boston new year's")) + }) }