bestasstosrt does not also remove all sub streams from mkv

This commit is contained in:
Bel LaPointe
2025-05-31 11:14:43 -06:00
parent b17801060e
commit 44bcc0ba2e
2 changed files with 72 additions and 30 deletions

29
src/asses/deport_test.go Normal file
View File

@@ -0,0 +1,29 @@
package asses_test
import (
"show-rss/src/asses"
"testing"
)
func TestSRTsByGoodness(t *testing.T) {
cases := map[string]struct {
given []string
want string
}{
"eng": {
given: []string{"a", "eng"},
want: "eng",
},
}
for name, d := range cases {
name := name
c := d
t.Run(name, func(t *testing.T) {
got := asses.SRTsByGoodness(c.given)
if got[0] != c.want {
t.Errorf("expected %s but got %s (%+v)", c.want, got[0], got)
}
})
}
}