fix: address code review findings

This commit is contained in:
2026-07-19 19:07:20 +03:00
parent a4c426f640
commit c70f46af27
10 changed files with 77 additions and 124 deletions

View File

@@ -39,6 +39,11 @@ func TestNormalizeString_Basic(t *testing.T) {
// Year-only title is preserved (not collapsed to empty) so it can still match
{"1989", "1989"},
{"2112", "2112"},
// A year-plus-suffix title collapses to empty: it is a distinct release
// group (e.g. "1989 (Deluxe)") and must NOT match a bare "1989".
{"1989 (Deluxe)", ""},
{"1989 [Deluxe Edition]", ""},
{"2112 (Remastered)", ""},
}
for _, tt := range tests {