diff --git a/internal/data/song_test.go b/internal/data/song_test.go index edb396c..230edb3 100644 --- a/internal/data/song_test.go +++ b/internal/data/song_test.go @@ -90,3 +90,15 @@ func TestAlbumDeduplicate(t *testing.T) { t.Errorf(`didn't properly merge or deduplicate albums`) } } + +func TestAlbumUnify(t *testing.T) { + album := Album{ + Name: " foo Bar BAZ", + } + + compiled := album.Compile().(Album) + + if compiled.UnifiedName != "foo bar baz" { + t.Errorf(`the song name doesn't get compiled properly`) + } +}