fix: address code review findings

This commit is contained in:
2026-07-19 18:59:38 +03:00
parent 8a5b58a817
commit a4c426f640
3 changed files with 33 additions and 6 deletions

View File

@@ -36,6 +36,9 @@ func TestNormalizeString_Basic(t *testing.T) {
// Digits that are not years should stay
{"30 Seconds to Mars", "30 seconds to mars"},
{"1941 - The Greatest Hits", "the greatest hits"},
// Year-only title is preserved (not collapsed to empty) so it can still match
{"1989", "1989"},
{"2112", "2112"},
}
for _, tt := range tests {