fix: address code review findings

- Strip standalone reissue keywords (remaster/remastered/remix/deluxe/
  expanded/edition/reissue/anniversary/bonus) regardless of brackets so
  non-parenthesized remasters still match the plain local title above the
  0.85 threshold (was falsely reported missing).
- Fix TestAppRun_ScanLogsMissingReleases to verify run() performs the
  scan itself (capture its log output) instead of re-running ScanAll
  independently, which passed even if run() were a no-op.
- Fix TestSimilarity misleading cases that downgraded to a <0.85 range
  check with dead want/epsilon fields; assert actual computed scores.
This commit is contained in:
2026-07-19 21:33:52 +03:00
parent e2de91c5d3
commit 79a376a127
4 changed files with 44 additions and 27 deletions

View File

@@ -22,7 +22,12 @@ func TestNormalizeString_Basic(t *testing.T) {
{"Album (Remastered)", "album"},
// Year removal
{"Dark Side of the Moon 1973", "dark side of the moon"},
{"Album 2020 Remastered", "album remastered"},
// Standalone reissue keywords (no brackets/parens) are stripped
{"Album 2020 Remastered", "album"},
{"The Wall 2011 Remaster", "the wall"},
{"X Deluxe", "x"},
{"Y Expanded Edition", "y"},
{"Z Remix", "z"},
// Space collapsing
{"Dark Side of the Moon", "dark side of the moon"},
// Trim