Add Orbit Three, Riot and Dark Files (0.58.0 in testing)
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m37s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m26s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-02 09:59:13 +00:00
co-authored by Claude Opus 5.5
parent 988a3476e0
commit e630737b69
17 changed files with 38 additions and 9 deletions
@@ -106,7 +106,7 @@ class ChannelPresetsTest {
}
@Test fun theNewChannelsAreConfiguredAndBranded() {
listOf(111, 121, 122, 123, 124, 141).forEach { number ->
listOf(111, 112, 113, 121, 122, 123, 124, 141, 142).forEach { number ->
assertTrue(SmartChannels.any { it.number == number && it.exactTitles && it.finishTogether })
assertNotNull(ChannelBrands.forNumber(number))
assertTrue(ChannelPresets.first { it.number == number }.smartOnly)
@@ -117,4 +117,15 @@ class ChannelPresetsTest {
@Test fun smartChannelNumbersAreUnique() {
assertEquals(SmartChannels.size, SmartChannels.map { it.number }.distinct().size)
}
@Test fun darkFilesFollowsTheBiblesDay() {
val parts = SmartChannels.first { it.number == 142 }.dayParts
val london = java.time.ZoneId.of("Europe/London")
fun show(title: String) = PoolSeries(title, title, listOf(PoolEpisode("$title-1", "s", EpisodeMark(1, 1), "E", 60_000)))
val pool = listOf(show("Forensic Files"), show("Unsolved Mysteries"), show("Most Haunted"))
fun at(h: Int) = java.time.ZonedDateTime.of(2026, 11, 2, h, 0, 0, 0, london).toInstant().toEpochMilli()
assertEquals(listOf("Forensic Files"), dayPartPool(pool, parts, at(12), london).map { it.title })
assertEquals(listOf("Unsolved Mysteries"), dayPartPool(pool, parts, at(19), london).map { it.title })
assertEquals(listOf("Most Haunted"), dayPartPool(pool, parts, at(23), london).map { it.title })
}
}