0.81.3: a failed audio choice recovers and no longer marks the file, and playback notes
pauljd/davidson-ci: Davidson CI / quality (push) Failing after 1m46s
pauljd/davidson-ci: Davidson CI / ai-review (push) Failing after 1m29s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-11-03 00:52:39 +00:00
co-authored by Claude Opus 5.5
parent ecfcfbe3e2
commit 963b7b0a0e
8 changed files with 83 additions and 6 deletions
@@ -0,0 +1,16 @@
package tv.orbit.classic
import org.junit.Assert.assertEquals
import org.junit.Test
class PlaybackNotesTest {
@Test fun describesEachKindOfTrack() {
assertEquals("audio=audio/eac3 6ch 48000Hz en", PlaybackNotes.describe("audio", "audio/eac3", 6, 48000, "en", -1, -1))
assertEquals("audio=audio/aac 2ch 44100Hz", PlaybackNotes.describe("audio", "audio/aac", 2, 44100, null, -1, -1))
assertEquals("video=video/hevc 1920x1080", PlaybackNotes.describe("video", "video/hevc", -1, -1, null, 1920, 1080))
}
@Test fun trimmingKeepsTheNewest() {
assertEquals("c\nd\n", PlaybackNotes.keepLast(listOf("a", "b", "c", "d"), 2))
}
}