0.81.3: a failed audio choice recovers and no longer marks the file, and playback notes
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -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))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user