Complete genre browsing for v0.2.34
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
package com.ponzischeme89.memby.ui.genre
|
||||
|
||||
import org.junit.Assert.assertEquals
|
||||
import org.junit.Test
|
||||
|
||||
class GenreBrowseTest {
|
||||
@Test
|
||||
fun `genre picker trims deduplicates and sorts names`() {
|
||||
assertEquals(
|
||||
listOf("Action", "comedy", "Science Fiction"),
|
||||
normaliseGenres(
|
||||
listOf(" Science Fiction ", "comedy", "", "Action", "Comedy", " "),
|
||||
),
|
||||
)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user