0.84.0: Paradox in three blocks with per-show mixed order
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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")))
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user