0.84.0: Paradox in three blocks with per-show mixed order
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 2m9s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m28s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-03 11:43:16 +00:00
co-authored by Claude Opus 5.5
parent 791dae0c0d
commit c38a293fdb
8 changed files with 55 additions and 13 deletions
@@ -37,4 +37,21 @@ class RunLengthTest {
assertEquals(listOf("big", "a"), plan.entries.take(2).map { it.seriesId })
assertTrue(plan.entries.none { "early" in it.why })
}
@Test fun aChannelCanMixSomeShowsAndKeepOthersInOrder() {
val pool = listOf(show("standalone", 20), show("arc", 20))
val plan = extendSchedule(pool, ScheduleCursor(), start, start + 40 * 10 * minute, finishTogether = true, mixed = { it.id == "standalone" })
assertEquals((1..20).toList(), plan.entries.filter { it.seriesId == "arc" }.map { it.mark.episode })
val mixed = plan.entries.filter { it.seriesId == "standalone" }.map { it.mark.episode }
assertNotEquals((1..20).toList(), mixed)
assertEquals((1..20).toList(), mixed.sorted())
}
@Test fun paradoxMixesItsStandalonesOnly() {
val paradox = SmartChannels.first { it.number == 106 }
assertTrue(paradox.mixes(show("x", 1).copy(title = "The X-Files")))
assertTrue(paradox.mixes(show("d", 1).copy(title = "Doctor Who (2005)")))
assertFalse(paradox.mixes(show("b", 1).copy(title = "Buffy the Vampire Slayer")))
assertFalse(paradox.mixes(show("s", 1).copy(title = "Supernatural")))
}
}