0.89.0: Terra, Wild, Odyssey, Dark Files and Evidence identities
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m47s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m21s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-03 13:56:13 +00:00
co-authored by Claude Opus 5.5
parent 5bb55685a9
commit 2b3dc5e598
14 changed files with 230 additions and 18 deletions
@@ -104,4 +104,20 @@ class ChannelIdentityTest {
val toonz = plan(605, 7).entries.groupingBy { it.media.item.title.substringBefore(" / ") }.eachCount()
assertTrue("$toonz", toonz.getValue("Tom and Jerry") > toonz.getValue("Top Cat"))
}
@Test fun factualChannelsKeepTheirIdentities() {
val terra = SmartChannels.first { it.number == 201 }
assertEquals("Terra reads its whole list", terra.searches.size, terra.seriesCount)
val sunday = ZonedDateTime.of(2026, 11, 15, 20, 30, 0, 0, zone).toInstant().toEpochMilli()
assertTrue(dayPartChoice(library(terra.searches, 50), terra.dayParts, sunday, zone).second.startsWith("event"))
val odyssey = SmartChannels.first { it.number == 202 }
assertTrue("Band of Brothers waits for a drama home", odyssey.dayParts.none { part -> part.titles.any { seriesKey(it) == seriesKey("Band of Brothers") } })
assertTrue(seriesKey("Band of Brothers") in odyssey.searches.map(::seriesKey))
val wild = plan(203, 42)
assertTrue(titlesWhere(wild) { it.dayOfWeek != java.time.DayOfWeek.SATURDAY && (it.hour >= 22 || it.hour < 6) }.none { it == "Dirty Jobs" })
val evidence = plan(107, 44)
val lineOfDuty = evidence.entries.filter { it.media.item.title.startsWith("Line of Duty") }.map { it.mark.episode }
assertEquals(lineOfDuty.sorted(), lineOfDuty)
assertTrue(titlesWhere(evidence) { it.hour in 6..17 }.none { it == "Luther" })
}
}