Rework the main menu around the live picture and the Drive-In (0.70.0)
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m42s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m36s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-02 12:38:57 +00:00
co-authored by Claude Opus 5.5
parent e0418770f4
commit a89c6a1391
9 changed files with 90 additions and 41 deletions
@@ -104,4 +104,13 @@ class GuideGridTest {
assertNull(guideNowFraction(999, 1_000, 2_000))
assertNull(guideNowFraction(2_000, 1_000, 2_000))
}
@Test fun onNowLeavesOutTheTunedChannelAndHoldsStillWithinAHalfHour() {
val channels = (1..10).map { number -> SampleChannel(listOf(media("a$number", 20), media("b$number", 20)), "Fixture", number) }
val picks = homeOnNow(channels, 3, 3, 42L)
assertEquals(3, picks.size)
assertTrue(picks.none { it.number == 3 })
assertEquals(picks.map { it.number }, homeOnNow(channels, 3, 3, 42L).map { it.number })
assertEquals(2, homeOnNow(channels.take(3), 3, 3, 42L).size)
}
}