node build fixed
This commit is contained in:
26
seanime-2.9.10/internal/api/metadata/anime_test.go
Normal file
26
seanime-2.9.10/internal/api/metadata/anime_test.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package metadata
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
func TestOffsetEpisode(t *testing.T) {
|
||||
|
||||
cases := []struct {
|
||||
input string
|
||||
expected string
|
||||
}{
|
||||
{"S1", "S2"},
|
||||
{"OP1", "OP2"},
|
||||
{"1", "2"},
|
||||
{"OP", "OP"},
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
actual := OffsetAnidbEpisode(c.input, 1)
|
||||
if actual != c.expected {
|
||||
t.Errorf("OffsetAnidbEpisode(%s, 1) == %s, expected %s", c.input, actual, c.expected)
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user