test album unify
This commit is contained in:
parent
e19803323a
commit
8fc6d69d45
@ -90,3 +90,15 @@ func TestAlbumDeduplicate(t *testing.T) {
|
|||||||
t.Errorf(`didn't properly merge or deduplicate albums`)
|
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`)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user