0.99.8: After Dark daytime Option B (19 lighter late-night cult films also by day)
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -53,14 +53,16 @@ class AfterDarkDaytimeReplayTest {
|
||||
val base = SmartChannels.first { it.number == AFTER_DARK_NUMBER }
|
||||
val committed = plan(File(dir, "schedule-305.json")); val series = pool(File(dir, "episodes-305.json"))
|
||||
val others = clashesWith(SmartChannels.filter { it.number != AFTER_DARK_NUMBER }.mapNotNull { p -> File(dir, "schedule-${p.number}.json").takeIf { it.exists() }?.let(::plan) })
|
||||
val dayPart = base.dayParts.single { it.group == "day" }
|
||||
// As built, the day block carries Option B's crossover; today's version is the same block without it.
|
||||
val dayPart = base.dayParts.single { it.group == "day" }.let { it.copy(titles = it.titles - AfterDarkDaytimeCrossover.toSet()) }
|
||||
val withoutB = base.dayParts.map { if (it.group == "day") dayPart else it }
|
||||
val missing = (daytime + earlyEvening).filter { t -> series.none { seriesKey(it.title) == seriesKey(t) } }
|
||||
val out = StringBuilder("After Dark daytime options: four weeks of new bookings after the committed plan, from box copies. Read-only.\n" +
|
||||
"Films named but not in the pool: ${missing.ifEmpty { listOf("none") }.joinToString()}\n\n")
|
||||
val variants = listOf(
|
||||
"A. Today: 05:00 to 21:00 from the day list and day suggestions" to base.dayParts,
|
||||
"B. Selective crossover: ${daytime.size} lighter cult films also allowed 05:00 to 21:00" to base.dayParts.map { if (it == dayPart) it.copy(titles = it.titles + daytime) else it },
|
||||
"C. Graded: B by day, then 18:00 to 21:00 also ${earlyEvening.size} cult comedies and British folk-horror television" to base.dayParts.flatMap {
|
||||
"A. Before Option B: 05:00 to 21:00 from the day list and day suggestions" to withoutB,
|
||||
"B. As built (Option B): ${AfterDarkDaytimeCrossover.size} lighter cult films also allowed 05:00 to 21:00" to base.dayParts,
|
||||
"C. Graded: B by day, then 18:00 to 21:00 also ${earlyEvening.size} cult comedies and British folk-horror television" to withoutB.flatMap {
|
||||
if (it != dayPart) listOf(it) else listOf(it.copy(toHour = 18, titles = it.titles + daytime), it.copy(fromHour = 18, titles = it.titles + daytime + earlyEvening))
|
||||
})
|
||||
for ((label, parts) in variants) {
|
||||
|
||||
@@ -33,4 +33,16 @@ class AfterDarkReviewTest {
|
||||
assertTrue("#withdrawn:" in afterDark.signature)
|
||||
assertTrue(SmartChannels.filter { it.number != AFTER_DARK_NUMBER }.none { "#withdrawn:" in it.signature })
|
||||
}
|
||||
|
||||
@Test fun optionBLetsNineteenLighterFilmsPlayByDayAndKeepsTheIntenseOnesLate() {
|
||||
val day = afterDark.dayParts.single { it.group == "day" }
|
||||
assertEquals(19, AfterDarkDaytimeCrossover.size)
|
||||
assertTrue(AfterDarkDaytimeCrossover.all { it in day.titles })
|
||||
val lateOnly = listOf("The Evil Dead (1983)", "Hellraiser (1987)", "Re-Animator", "Society", "Videodrome", "Pink Flamingos", "Santa Sangre", "Possession",
|
||||
"Angst", "Funny Games", "I Saw the Devil", "Ghostwatch", "The Texas Chain Saw Massacre", "Street Trash (1987)")
|
||||
assertTrue(day.titles.map { seriesKey(FilmIdentity.of(it).title) }.none { t -> lateOnly.any { seriesKey(FilmIdentity.of(it).title) == t } })
|
||||
// No withdrawn mainstream film comes back through the day list.
|
||||
assertTrue(listOf("Jaws", "The Shining", "The Exorcist", "Alien (1979)").none { t -> day.titles.any { seriesKey(FilmIdentity.of(it).title) == seriesKey(FilmIdentity.of(t).title) } })
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user