0.89.0: Terra, Wild, Odyssey, Dark Files and Evidence identities
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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" })
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user