mirror of
https://github.com/austinried/subtracks.git
synced 2026-11-15 00:42:54 +01:00
Address review: scale artist title cap and cover it with the scrim
This commit is contained in:
@@ -37,6 +37,29 @@ class DownloadTreeTest {
|
||||
assertEquals(36L, tree.bytes)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun songsKeepTheOrderTheRepositoryReturns() {
|
||||
val tree =
|
||||
buildTree(
|
||||
listOf(
|
||||
song("s2", "Two", "ar1", "Artist", "al1", "First", size = 20),
|
||||
song("s1", "One", "ar1", "Artist", "al1", "First", size = 10),
|
||||
),
|
||||
"Unknown artist",
|
||||
"Unknown album",
|
||||
)
|
||||
|
||||
assertEquals(
|
||||
listOf("Two", "One"),
|
||||
tree.artists
|
||||
.single()
|
||||
.albums
|
||||
.single()
|
||||
.songs
|
||||
.map { it.title },
|
||||
)
|
||||
}
|
||||
|
||||
@Test
|
||||
fun aSongWithNoArtistOrAlbumIsStillShown() {
|
||||
val tree = buildTree(listOf(song("s1", "One", null, null, null, null, size = 3)), "Unknown artist", "Unknown album")
|
||||
|
||||
Reference in New Issue
Block a user