OpenMediaCenter/apiGo/videoparser/ReIndexTVShows_test.go
lukas 5295f0b182 add go unit test
send status messages when tvshow reindexing
2021-05-01 16:25:32 +02:00

14 lines
273 B
Go

package videoparser
import "testing"
func TestDifference(t *testing.T) {
arr1 := []string{"test1", "test2", "test3"}
arr2 := []string{"test1", "test3"}
res := difference(arr1, arr2)
if len(res) != 1 || res[0] != "test2" {
t.Errorf("wrong difference result.")
}
}