0.2.41 - Preroll fixes, theme fixes

This commit is contained in:
ponzischeme89
2026-08-10 09:39:09 +12:00
parent e1bb687df4
commit 32c0054c44
17 changed files with 648 additions and 167 deletions
@@ -21,6 +21,33 @@ class WelcomeQuotesTest {
}
}
/**
* The point of the pools is that a household does not read the same line every fifth
* launch, and a pool that quietly shrank back — or gained a duplicate on a copy-paste —
* would look identical to one that had not. Counted rather than eyeballed for that
* reason; the floor is deliberately below what is written, so adding a tone does not
* mean matching the longest list exactly.
*/
@Test
fun `every tone offers a deep pool of distinct lines`() {
WelcomeQuoteStyle.entries.forEach { style ->
val seen = (0 until 4_000)
.map { randomWelcomeQuote(style.value, Random(it)) }
.toSet()
assertTrue(
"${style.value} offers only ${seen.size} distinct lines",
seen.size >= 20,
)
}
}
@Test
fun `the loading headline varies and always says something`() {
val seen = (0 until 1_000).map { randomLoadingHeadline(Random(it)) }.toSet()
assertTrue("only ${seen.size} distinct headlines", seen.size >= 5)
assertTrue(seen.none { it.isBlank() })
}
@Test
fun `login greeting trims the authenticated username`() {
assertTrue(